Handle HTTP status code