Fixed status code check error reporting.