Skip to content

Conversation

@aleszoulek
Copy link

HTTP responses that are returned, when exceptions are raised, should include a textual message after http status code. They are not required by RFC, but it's recommended to include them.

Missing message may also break some HTTP clients.

So instead of: HTTP/1.1 404

Json api will return HTTP/1.1 404 Object not found etc.

@coveralls
Copy link

coveralls commented Nov 30, 2017

Coverage Status

Coverage increased (+0.01%) to 94.316% when pulling 61b8575 on aleszoulek:http-status-lines into ac83e68 on miLibris:master.

@akira-dev
Copy link
Collaborator

Sorry but it changes to much things all responses will be affected and i have fear of side effects so i will close this pr.

@akira-dev akira-dev closed this Jan 22, 2019
@AdrianVandierAst
Copy link

There is a better way. The problem is that statuses in JsonApiException are strings instead of integers. Flask does the job of adding the text if the status is an integer.

I can create a pull request if akira-dev agrees with that solution :)

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.

4 participants