lib/eps-rapid/client.rb in eps-rapid-1.1.2 vs lib/eps-rapid/client.rb in eps-rapid-1.1.3
- old
+ new
@@ -86,9 +86,11 @@
logger.debug("Response: #{response.code.to_i} headers=(#{response.to_hash}): body=(#{response.body})")
case response.code.to_i
when HttpStatusCodes::HTTP_OK_CODE, HttpStatusCodes::HTTP_CREATED_CODE
JSON.parse(response.body)
+ when HttpStatusCodes::HTTP_ACCEPTED_CODE
+ { 'status' => 202 }
when HttpStatusCodes::HTTP_NO_CONTENT_CODE
{ 'status' => 204 }
else
raise error_class(response.code), "Code: #{response.code}, Error: #{map_error_messages(response.body)}"
end