-
-
Notifications
You must be signed in to change notification settings - Fork 984
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
Allow overwrite function methodNotAllowedHandler #101
Comments
hey @ivoszz I see, potentially I can put a |
@ivoszz I was just checking into this, and it seems the current |
hey @pkieltyka you are right. The body is empty but still marked as text/html and this doesn't solve the problem of JSON api. text/html is hard coded and cannot be changed even when there are Accept: application/json or application/vnd.api+json in request header. The header Allow is also not generated (and cannot be) which is against the spec: |
got it, good points |
I would like to thank you for your effort. |
:) no prob |
I am just starting to use your project which seems excellent to me, but got into trouble with hard coded methodNotAllowedHandler function. I have to return JSON object on every error (like in JSON API spec) and I am not able to specify my own response to this error. Or can you suggest any solution to this? Thanks.
The text was updated successfully, but these errors were encountered: