Handle 5xx error codes other than 500 and 503

ref. spacialdb/gcm#10