Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update status code to message mapping based on https://developer.mozilla.org/de/docs/Web/HTTP/Status

(cherry picked from commit 4716194)
  • Loading branch information
cdhermann authored and gsmet committed Jan 15, 2022
1 parent f0015b3 commit 8940484
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,17 @@ public abstract class AbstractRestResponseBuilder<T> extends RestResponse.Respon
static {
defaultReasonPhrases.put(100, "Continue");
defaultReasonPhrases.put(101, "Switching Protocols");
defaultReasonPhrases.put(102, "Processing");
defaultReasonPhrases.put(103, "Early Hints");
defaultReasonPhrases.put(200, "OK");
defaultReasonPhrases.put(201, "Created");
defaultReasonPhrases.put(202, "Accepted");
defaultReasonPhrases.put(203, "Non-Authoritative Information");
defaultReasonPhrases.put(204, "No Content");
defaultReasonPhrases.put(205, "Reset Content");
defaultReasonPhrases.put(206, "Partial Content");
defaultReasonPhrases.put(208, "Already Reported");
defaultReasonPhrases.put(226, "IM Used");
defaultReasonPhrases.put(300, "Multiple Choices");
defaultReasonPhrases.put(301, "Moved Permanently");
defaultReasonPhrases.put(302, "Found");
Expand All @@ -65,16 +69,22 @@ public abstract class AbstractRestResponseBuilder<T> extends RestResponse.Respon
defaultReasonPhrases.put(415, "Unsupported Media Type");
defaultReasonPhrases.put(416, "Requested Range Not Satisfiable");
defaultReasonPhrases.put(417, "Expectation Failed");
defaultReasonPhrases.put(421, "Misdirected Request");
defaultReasonPhrases.put(426, "Upgrade Required");
defaultReasonPhrases.put(428, "Expectation Failed");
defaultReasonPhrases.put(429, "Precondition Required");
defaultReasonPhrases.put(431, "Too Many Requests");
defaultReasonPhrases.put(428, "Precondition Required");
defaultReasonPhrases.put(429, "Too Many Requests");
defaultReasonPhrases.put(431, "Request Header Fields Too Large");
defaultReasonPhrases.put(451, "Unavailable For Legal Reasons");
defaultReasonPhrases.put(500, "Internal Server Error");
defaultReasonPhrases.put(501, "Not Implemented");
defaultReasonPhrases.put(502, "Bad Gateway");
defaultReasonPhrases.put(503, "Service Unavailable");
defaultReasonPhrases.put(504, "Gateway Timeout");
defaultReasonPhrases.put(505, "HTTP Version Not Supported");
defaultReasonPhrases.put(506, "Variant Also Negotiates");
defaultReasonPhrases.put(507, "Insufficient Storage");
defaultReasonPhrases.put(508, "Loop Detected");
defaultReasonPhrases.put(510, "Not Extended");
defaultReasonPhrases.put(511, "Network Authentication Required");
}

Expand Down

0 comments on commit 8940484

Please sign in to comment.