Closed wd-David closed 1 year ago
For the first draft of the use of status code, I'd suggest:
200 OK
201 Created
: POST
204 No Content
: PUT
or DELETE
400 Bad Request
: Wrong request body401 Unauthorized
: Invalid credential (not logged in but send request)Thank you for the suggestion. After adding auth process, I will add the status code on each response.
Good job! @AdrieneTZ .
@AdrieneTZ We need to align the response status code:
200
means successful400
means a bad request (e.g., incorrect format)Others like wrong credentials, ...etc.