Logic dealing with responses is not always concerned with the exact response code, but more along the lines of did I do something wrong, or did they do something wrong.
These accessors allow us to write code that reads a bit better in those cases:
if response.client_error?
fix_and_retry
elsif response.server_error?
report_error
end
Logic dealing with responses is not always concerned with the exact response code, but more along the lines of did I do something wrong, or did they do something wrong.
These accessors allow us to write code that reads a bit better in those cases:
Closes #23.