Check the status code