Skip to content

Commit

Permalink
fix: 1xx codes are also success
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Mar 25, 2024
1 parent ba17858 commit a309c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/response_code.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ let descr = function
| 503 -> "Service unavailable"
| n -> "Unknown response code " ^ string_of_int n (* TODO *)

let[@inline] is_success n = n >= 200 && n < 400
let[@inline] is_success n = n < 400

0 comments on commit a309c65

Please sign in to comment.