Forums

POST /consoles/ returns 200 OK when console-creation rejected due to out-of-consoles

Normally POST ... /consoles/ returns 201 CREATED when it creates a console, great. But if you are at your account limit of consoled (e.g. 2 for a free account), trying to create a third returns 200 OK instead. It does return HTML error page with the hint, but the code should not be 200 OK:

<title>Console limit reached : javabrett : PythonAnywhere</title>

It should instead set some 4XX error code.

Thanks! Ticket raised.