New logic

This commit is contained in:
2024-05-17 12:08:56 +01:00
parent 7df3e94185
commit ec07527653
3 changed files with 44 additions and 6 deletions

View File

@@ -8,5 +8,13 @@ def is_client_err?(code)
end
def is_server_err?(code)
HTTP_SERVER_ERROR_RANGE === code
end
def is_info_status?(code)
HTTP_INFORMATIONAL_RANGE === code
end
def is_successful?(code)
HTTP_SUCCESS_RANGE === code
end