Skip to content

Commit

Permalink
Add HTTP code 406 to the response code table
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed Aug 27, 2023
1 parent 3ddf09b commit a73f13a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/lwan.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ static ALWAYS_INLINE uint64_t string_as_uint64(const char *s)
X(FORBIDDEN, 403, "Forbidden", "Access to this resource has been denied") \
X(NOT_FOUND, 404, "Not found", "The requested resource could not be found on this server") \
X(NOT_ALLOWED, 405, "Not allowed", "The requested method is not allowed by this server") \
X(NOT_ACCEPTABLE, 406, "Not acceptable", "No suitable accepted-encoding header provided") \
X(TIMEOUT, 408, "Request timeout", "Client did not produce a request within expected timeframe") \
X(TOO_LARGE, 413, "Request too large", "The request entity is too large") \
X(RANGE_UNSATISFIABLE, 416, "Requested range unsatisfiable", "The server can't supply the requested portion of the requested resource") \
Expand Down

0 comments on commit a73f13a

Please sign in to comment.