Skip to content

Handling of 422 Unprocessable Entity #89

@djbordelon

Description

@djbordelon

Attempting to POST an already registered DOI to DataCite results in a 422 Unprocessable Entity. However, DataCiteError (defined in errors.py) does not have a case for this scenario, so such a response ends up being cast as a DataCiteServerError, which is meant for 5xx responses. In other words, a user error is converted into a server error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions