Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error collection HTTP status bug #11

Closed
lindyhopchris opened this issue Sep 22, 2015 · 0 comments
Closed

Error collection HTTP status bug #11

lindyhopchris opened this issue Sep 22, 2015 · 0 comments

Comments

@lindyhopchris
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant