Skip to main content

HTTP Status Code In Valid Range

ItemDescription
Full Fuzzer NameHttpStatusCodeInRangeLinterFuzzer
Log KeyHSCIRL
DescriptionThis fuzzer will check if the OpenAPI specs have valid response codes (i.e. > 100 and < 599) defined for all paths and HTTP methods.
Enabled by default?No. You need to use the cats lint ... sub-command.
Target contract elementsOpenAPI contract metadata and structures relevant to this rule.
Expected resultsuccess when no violation is found; error when the rule is violated.
Fuzzing logicInspects the OpenAPI contract without sending HTTP requests and reports violations of this rule.
Conditions when this fuzzer will be skippedNone; the linter runs once for the supplied contract.
HTTP methods that will be skippedN/A — no HTTP requests are sent.
ReportingReports error if at least one HTTP response code is invalid, or success otherwise.