[OTDev] What is the correct status code???

Nina Jeliazkova nina at acad.bg
Tue Dec 22 19:56:07 CET 2009


Dear Pantelis,


chung wrote:
> Dear all,
>  Suppose that a client performs a request at service A and service A
> performs a request at the service B which lies on some other server and
> service B returns a status code 500. What should the service A return to
> the client? Should it be a 500?
>
>   
502 seems to be more appropriate :

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html


      10.5.3 502 Bad Gateway

The server, while acting as a gateway or proxy, received an invalid
response from the upstream server it accessed in attempting to fulfill
the request.


Best regards,
Nina
> Best regards,
> Pantelis
>
> _______________________________________________
> Development mailing list
> Development at opentox.org
> http://www.opentox.org/mailman/listinfo/development
>   




More information about the Development mailing list