Appended some distinguishable text to the generic reason phrase returned by HttpResponseStatus.valueOf(int)

This commit is contained in:
Trustin Lee 2009-10-07 12:38:17 +00:00
parent a4172500d5
commit ccecb0af2c

View File

@ -336,7 +336,7 @@ public class HttpResponseStatus implements Comparable<HttpResponseStatus> {
reasonPhrase = "Unknown Status";
}
return new HttpResponseStatus(code, reasonPhrase);
return new HttpResponseStatus(code, reasonPhrase + " (" + code + ')');
}
private final int code;