java - Why my server response status code is 200 instead of 200 ok? -


i created web application spring boot.but find response status code 200

enter image description here

instead of 200 ok

enter image description here.

and use return new responseentity<>("xx",httpstatus.ok);,the response code 200.

the 'other application' @ fault. rfc 2616:

6.1.1 status code , reason phrase

the status-code element 3-digit integer result code of attempt understand , satisfy request. these codes defined in section 10. reason-phrase intended give short textual description of status-code. the status-code intended use automata , reason-phrase intended human user. client not required examine or display reason- phrase.

emphasis added. 'other application' automaton, not human user, , therefore should looking @ status-code.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -