Safely checks if an error is an HTTP error with a specific status code.
The error to check
The status code to check for
True if the error has the specified status code
Safely checks if an error is an HTTP error with a specific status code.