Handle 5xx error codes other than 500 and 503