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
instead of 200 ok
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
Post a Comment