Skip to content

respond to client errors with 400 range responses rather than 500 #2

@jedgalbraith

Description

@jedgalbraith

Would it be possible to respond to errors that are a result of client/user provided data with 400 range statuses rather than 500? That way Odin can handle them differently. For example:

500:{
  "errors": [
    "Your IP (...) is not authorized to use this API key"
  ]
}

Currently that error indicates to Odin that something malfunctioned within the adapter because of the 500 status, when really it was just a user setting causing the error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions