Message body on a 404 message

前端 未结 1 474
生来不讨喜
生来不讨喜 2021-02-07 05:11

I was talking with a co-worker that for some reason wrote a framework from the ground up just because it wasn\'t able to automatically unmarshall a message body on a 404 HTTP Pa

相关标签:
1条回答
  • 2021-02-07 05:49

    If you use a web browser to go to http://www.google.com/unknown You will get a 404 status code and an entity body.

    It is quite common for entity bodies to be returned with 404s.

    If you look at the description of 400 errors in the HTTPbis spec you will see

    the server SHOULD include a representation containing an
    explanation of the error situation, and whether it is a temporary or
    permanent condition.

    0 讨论(0)
提交回复
热议问题