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

Fix error EUNKNOWN on 204 response #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abemedia
Copy link

@abemedia abemedia commented Mar 29, 2017

All empty responses return a 500 EUNKNOWN error, the jsonapi spec however states that 204 responses are a valid response for POST, PATCH & DELETE requests where the result matches the request body. Here an excerpt from the spec:

A server MUST return a 204 No Content status code if an update is successful and the representation of the resource in the request matches the result.

All empty responses return a 500 EUNKNOWN error, the jsonapi spec however states that 204 responses are a valid response for POST, PATCH & DELETE requests where the result matches the request body. Here an excerpt from the spec on http://jsonapi.org/format/
```
A server MUST return a 204 No Content status code if an update is successful and the representation of the resource in the request matches the result.
```
@abemedia
Copy link
Author

Just checked the logs on travis and the fail was not a fault of the code!

@pmcnr-hx
Copy link
Contributor

@abemedia: I've rerun the build. I'll try to review the PR soon.

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

Successfully merging this pull request may close these issues.

2 participants