Skip to content

Commit

Permalink
Better 200s
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDonkin-Gallagher committed Jun 23, 2024
1 parent c2d9d81 commit fd551d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions training/rest_training.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,12 @@ and a body.

==== Response codes

Any response in the 200-299 range means success. GETs return a 200 along
with their results. DELETEs return 204 ("no content"), which just means they
succeeded and having nothing more to say. PATCHes return 200 or 204
depending on whether they have feedback.

Creating an item or event returns 201 ("created").
Any response in the 200-299 range means success. GETs return a 200 along
with their results. DELETEs and PATCHes return 204 ("no content") when they
succeed and having nothing more to say, and 200 when they do. POSTs return
201 with a link to the thing they created, if there is one, and 200 or 204
when there is not. Methods that can return a 204 "no content" will return
200 instead if they have feedback for you.

A response in the 400-499 range generally means there was something
wrong with the request. One exception is 409: it could mean that your
Expand Down

0 comments on commit fd551d7

Please sign in to comment.