Responses
There are custom response functions that are used to wrap the normal express responses — they're mainly there to just make sure the
correct status codes are being used.
20x
Function | Status Code | Arguments |
ok | 200 | res : the express responsebody : the body of the response
|
created | 201 | res : the express responsebody : the body of the response
|
no_content | 204 | res : the express responsebody : the body of the response
|
reset | 205 | res : the express responsebody : the body of the response
|
40x
Function | Status Code | Arguments |
bad_request | 400 | res : the express responsebody : the body of the response
|
unauthorized | 401 | res : the express responsebody : the body of the response
|
forbidden | 403 | res : the express responsebody : the body of the response
|
not_found | 404 | res : the express responsebody : the body of the response
|
not_acceptable | 406 | res : the express responsebody : the body of the response
|
conflict | 409 | res : the express responsebody : the body of the response
|
50x
Function | Status Code | Arguments |
internal_error | 500 | res : the express responsebody : the body of the response
|