Switch to Requests lib in testing so we can really assert error code value.