Skip to content

Distinguish between server and client errors #101

Description

@briggySmalls

Currently the auth.middleware checks for the account ID and for permissions for accessing the endpoint.

But any errors are interpreted as an InternalServerError, including if the client's token doesn't give them permission to access the account they are requesting, which should be some sort of BadRequest.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions