File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,17 @@ enum Code
9898
9999#### C Variant ####
100100``` c
101- int HttpStatus_isInformational (int code);
102- int HttpStatus_isSuccessful(int code);
103- int HttpStatus_isRedirection(int code);
104- int HttpStatus_isClientError(int code);
105- int HttpStatus_isServerError(int code);
101+ char HttpStatus_isInformational (int code);
102+ char HttpStatus_isSuccessful(int code);
103+ char HttpStatus_isRedirection(int code);
104+ char HttpStatus_isClientError(int code);
105+ char HttpStatus_isServerError(int code);
106106```
107107Return `1` if the given _code_ belongs to the corresponding class of status codes (see [RFC7231](https://tools.ietf.org/html/rfc7231#section-6)).
108108Return `0` otherwise.
109109
110110```c
111- int HttpStatus_isError(int code);
111+ char HttpStatus_isError(int code);
112112```
113113Returns ` 1 ` if the given _ code_ is either a client error, a server error or any non-standard error code.
114114Non-standard error codes are status codes with a value of 600 or higher.
You can’t perform that action at this time.
0 commit comments