Get the text associated with response code

Is there any method or any way to retrieve the text associated with the response code
Eg: 400 Bad Request -> need to get the text “Bad Request”
As of now I have found only methods to get the response code only.

The text associated with HTTP Response code is defined by the following global standard document

RFC 2616 , Section 10

The texts are highly unlikely to change in future.

You do not need to be told by some methods or classes.

1 Like