Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snapshot-labs/pineapple
https://github.com/snapshot-labs/pineapple
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/snapshot-labs/pineapple
- Owner: snapshot-labs
- License: mit
- Created: 2022-04-20T19:08:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T05:07:38.000Z (5 months ago)
- Last Synced: 2024-08-24T03:26:47.259Z (5 months ago)
- Language: TypeScript
- Homepage: https://pineapple.fyi
- Size: 3.47 MB
- Stars: 17
- Watchers: 3
- Forks: 9
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pineapple
## Error codes
All endpoints will respond with a [JSON-RPC 2.0](https://www.jsonrpc.org/specification) error response on error:
```bash
{
"jsonrpc":"2.0",
"error":{
"code": CODE,
"message": MESSAGE
},
"id": ID
}
```| Description | `CODE` | `MESSAGE` |
| --------------------------------------------------------------- | ------ | ------------------------------------------- |
| Uploaded file exceed 1MB | 400 | File too large |
| Uploaded image file is not an image | 415 | Unsupported file type |
| Uploaded payload does not contain a fileSize | 400 | No file submitted |
| Server error | 500 | (Will depend on the error) | |