Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

returned ps http error codes not aligned with ps doc #3

Open
goekay opened this issue Jul 29, 2016 · 4 comments
Open

returned ps http error codes not aligned with ps doc #3

goekay opened this issue Jul 29, 2016 · 4 comments

Comments

@goekay
Copy link
Member

goekay commented Jul 29, 2016

as the title says.

@apheleia, can we make the changes in the code, without fearing to break your system?

@schemar
Copy link

schemar commented Jul 29, 2016

Just to confirm:
steve returns different HTTP response codes than stated in the docs at http://docs.plugsurfing.com/en/stable ?

Which changes are you referring to? Updating the HTTP response codes of steve? You should definitely do that, if you can. We will have to test the integration then. But in the long run this is definitely the preferred way.

@goekay
Copy link
Member Author

goekay commented Jul 29, 2016

i realized that we return, for example, lots of "Bad requests" in https://github.com/RWTH-i5-IDSG/steve-plugsurfing/blob/master/src/main/java/de/rwth/idsg/steve/extensions/plugsurfing/rest/ResourceImpl.java#L137

which the docs did not define in http://docs.plugsurfing.com/en/stable/calls/session_stop.html#response

there are only "Unauthorized" and "Not found". but, the checks in implementation cover also more ground than what's in the docs. situations like "No such session" or "Session already expired/closed" are not defined.

@schemar
Copy link

schemar commented Jul 29, 2016

Then we will update to documentation to include these cases. That information is very valuable to us. It enables us to show proper error messages to our customers.

@goekay
Copy link
Member Author

goekay commented Jul 29, 2016

ok. can you then tell me which http error response codes from the code you will integrate into the docs, and which ones i should change to align with the docs?

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

No branches or pull requests

2 participants