gmantele / vollt

Java libraries implementing the IVOA protocol: ADQL, UWS and TAP
http://cdsportal.u-strasbg.fr/taptuto/
29 stars 28 forks source link

UWS: wrong HTTP return codes #123

Closed vforchi closed 4 years ago

vforchi commented 4 years ago

If I try to access a job created by another user the library returns UwsException.PERMISSION_DENIED = 550, but it should return FORBIDDEN (403), as described by the standard (http://www.ivoa.net/documents/UWS/20161024/REC-UWS-1.1-20161024.html#security).

Also, I noticed that FORBIDDEN is returned when the user tries to change a parameter in a phase when that is not allowed. I think this should be a 400, or 406.

gmantele commented 4 years ago

Thank you for having reported this error :)