Handle 5xx as errors
Merge pull request #304 from ryanseys/err-5xx

Handle 5xx as errors