Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/snapshot-labs/pineapple


https://github.com/snapshot-labs/pineapple

Last synced: about 2 months ago
JSON representation

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) | |