Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.27 KB

notes_on_restful_api_design.md

File metadata and controls

30 lines (26 loc) · 1.27 KB

Notes on RESTful API Design

This is a list of return codes in relation to a RESTful API design.

Some of the operations has more that one outcome, so you need to decide on what you find the most appropriate one.

OperationHTTP MethodSTATUS CODE ON SUCCESS
CreatePOST201 Created
202 Accepted
ReadGET200 OK
UpdatePUT200 OK
204 No Content
PATCH200 OK
204 No Content
DeleteDELETE200 OK
202 Accepted
204 No Content
OperationHTTP MethodSTATUS CODE ON ERROR
CreatePOST409 Conflict
422 Unprocessable Content
ReadGET404 Not Found
UpdatePUT404 Not Found
409 Conflict
PATCH404 Not Found
DeleteDELETE404 Not Found