dandi / dandi/dandi-archive

Standardize 4xx error responses

Open
#356 8 comments 1 reaction 0 assignees View on GitHub
DX maintenance UX
Dominant language
Python
Stars
26
Forks
21
Avg merge
5d 6h
Merged PRs (30d)
14

Description

As the maintainer of the dandi-api client, I would greatly appreciate it if all 4xx responses had bodies of the form:

```json
{
"error": "PermissionDeniedError",
"message": "You do not have permission to delete this asset."
}
```

where the `error` values belong to a fixed, documented set so that the client can map them to custom Python exception types.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.