Skip to content

Pre-defined error responses for known HTTP errors #10

Description

@Mulkave

Things like 400, 404, 5xx can have a pre-defined set of functions that return an elegant response:

Api::errorNotFound(); // 404 
Api::errorBadRequest(); // 400
Api::errorInternal(); // 500
Api::errorForbidden(); // 403
Api::errorUnauthorized(); // 401

etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions