Atenciosamente,
Felipe Moura
Desenvolvedor Web
http://about.me/felipewebdf
twitter: @felipewebdf
talk: felip...@gmail.com
msn: gu...@hotmail.com
(61) 8490-8156
Request-URI = absoluteURI | abs_path
The 4xx class of status code is intended for cases in which the client seems to have erred. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. These status codes are applicable to any request method. User agents SHOULD display any included entity to the user.
If the client is sending data, a server implementation using TCP SHOULD be careful to ensure that the client acknowledges receipt of the packet(s) containing the response, before the server closes the input connection. If the client continues sending data to the server after the close, the server's TCP stack will send a reset packet to the client, which may erase the client's unacknowledged input buffers before they can be read and interpreted by the HTTP application."
Quando o erro for da aplicação, o body do response deverá indicar isso.
Outra questão é que levando em consideração que restfull utiliza a interface do protocolo HTTP, vcs não acham que fazendo esse encapsulamento deixa de ser restfull? A aplicação cliente não poderá se basear no protocolo e sim no retorno.
Bem, se o erro for de servidor não vai haver retorno, ou seja, esse encapsulamento de nada serviria, não?
Outra questão é que levando em consideração que restfull utiliza a interface do protocolo HTTP, vcs não acham que fazendo esse encapsulamento deixa de ser restfull? A aplicação cliente não poderá se basear no protocolo e sim no retorno.
Não vou comentar detalhes, para nao alimentar discussão desnecessária, como citou o Silvano, releia o texto.
Uma coisa é não ter informações para um usuário, outra coisa é o recurso não existir.