Skip to content

Error collection HTTP status bug #11

Closed
@lindyhopchris

Description

@lindyhopchris

The following:

{
    "errors": [
        {
            "status": "422",
            "code": "invalid-attributes",
            "title": "Invalid Attributes",
            "detail": "The provided attributes are invalid.",
            "source": {
                "pointer": "/data/attributes"
            }
        },
        {
            "status": "422",
            "code": "invalid-attribute",
            "title": "Invalid Attribute",
            "detail": "The title must be at least 2 characters.",
            "source": {
                "pointer": "/data/attributes/title"
            }
        }
    ]
}

had a HTTP status code of 400. Check what ErrorCollection::getStatus() returns in the above scenario.

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