Skip to content

Fix error EUNKNOWN on 204 response #53

New issue

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

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

Already on GitHub? # to your account

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.

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

Successfully merging this pull request may close these issues.

2 participants