Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tendant/chi-demo
https://github.com/tendant/chi-demo
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tendant/chi-demo
- Owner: tendant
- Created: 2022-10-03T05:20:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T21:42:35.000Z (3 months ago)
- Last Synced: 2024-10-12T13:31:20.700Z (2 months ago)
- Language: Go
- Size: 3.54 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README-error.md
Awesome Lists containing this project
README
# HTTP Status Code
```
1. 200: Ok, normal response
201: Created. Created record, usually for Post request.
2. 301: Moved permanently.
302: Found.
303: See Other.
4. 400: Bad Request. Wrong parameters
401: Unauthorized. No token or invalid token.
403: Forbidden. Authenticated user with valid token has no permission to access the resource.
404: Not Found. No resource found for requested URI.
429: Too Many Requests. Exceeded rate limit.
5. 500: Internal Server Error. Server error, e.g. database connection issue, server side code/data issue.
```# Error response body structure
```
{
"message": "Human readable error message",
"code": "error code, defined by server",
"errors": [
{
"message": "Human readable error message 1",
"code": "error code, defined by server"
},
{
"message": "Human readable error message 2",
"code": "error code, defined by server"
}
]
}
```