Report an error if the response code is not 201