precise http error code for api calls
This commit is contained in:
parent
013e78ce4e
commit
3b46594e60
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class ApiEntreprise::API
|
|||
elsif response.code&.between?(401, 499)
|
||||
raise ResourceNotFound
|
||||
else
|
||||
raise RequestFailed
|
||||
raise RequestFailed, "HTTP Error Code: #{response.code}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue