Skip to content
This repository was archived by the owner on Dec 8, 2023. It is now read-only.
This repository was archived by the owner on Dec 8, 2023. It is now read-only.

Tidy up the JSON request body handling #21

@rknLA

Description

@rknLA

#20 was a bit haphazard, and might require a bit more tidying and thought.

As mentioned in the post-mortem comments there, we need to make sure that we're checking Content-Type, and developing a reasonable strategy for error handling. My knee-jerk reaction is that if the body content isn't parsable by whichever parser we infer from Content-Type, then we should actually raise a 422 Unprocessable Entity here, instead of propagating the request any further down the pipe.

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