January 25, 2010

4xx Client Error

HTTP is actually quite clear on how decoupled the server is from the client by calling all non-technical errors simply Client Errors. Dang! So simple! 404 - who broke the contract? The client! 406 - who broke the contract? The client! ...

RFC2616 uses a softer tone though:

"The 4xx class of status code is intended for cases in which the client seems to have erred."

I guess testing a RESTful system means testing the clients...

1 comment:

  1. [...] This post was mentioned on Twitter by Erik Wilde and Jan Algermissen, Graham Moore. Graham Moore said: RT @algermissen: Who's to blame for any 4xx? The client! :-) http://www.nordsc.com/blog/?p=142 [...]