10 | --------------------- | -------------------------------------------- |
11 | `200 OK` | Successful get, patch (return a JSON object) |
12 | `201 Created` | Successful post (return a JSON object) |
13 | `202 Accepted` | Successful post, delete, path - async |
14 | `204 No content` | Successful delete |
15 | `206 Partial content` | Successful get - async |
19 | Code | Description |
20 | -------------------------- | --------------------------------- |
21 | `401 Unauthorized` | Not authenticated |
22 | `403 Forbidden` | Authenticated, but no permissions |
23 | `422 Unprocessable entity` | Validation |
28 HTTP/1.1 401 Unauthorized
29 Content-Type: application/json
32 'message': "You're not logged in."
36 Here's an example of a possible error reply.
42 Accept: application/json; version=1
45 You can pass a `version=x` to the Accept request header. [Info here](https://github.com/interagent/http-api-design#version-with-accepts-header)
50 curl -is https://$TOKEN@api.service.com/
55 | Request | Description |
56 | -------------------- | ----------------------------- |
57 | `GET /articles/1` | read, returns _200_ |
58 | `PUT /articles/1` | edit (or path), returns _200_ |
59 | `DELETE /articles/1` | delete, returns _200_ |
60 | `POST /articles` | create, returns _201_ |
61 | `GET /articles` | list, returns _200_ |
65 * [interagent/http-api-design](https://github.com/interagent/http-api-design) _(github.com)_