We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f603b98 + 41bacfb commit adcdebaCopy full SHA for adcdeba
1 file changed
lib/messagebird/client.rb
@@ -51,7 +51,7 @@ def request(method, path, params={})
51
when 200, 201, 204, 401, 404, 405, 422
52
json = JSON.parse(response.body)
53
else
54
- raise Net::HTTPServerError.new 'Unknown response from server', response
+ raise Net::HTTPServerError.new response.http_version, 'Unknown response from server', response
55
end
56
57
# If the request returned errors, create Error objects and raise.
0 commit comments