Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Twitter::Error::UnprocessableEntity

  • Loading branch information...
commit fca4d174e8237655c82992edf67fcc846497fd54 1 parent d0200d7
@sferik authored
View
10 lib/twitter/error/unprocessable_entity.rb
@@ -0,0 +1,10 @@
+require 'twitter/error/client_error'
+
+module Twitter
+ class Error
+ # Raised when Twitter returns the HTTP status code 404
+ class UnprocessableEntity < Twitter::Error::ClientError
+ HTTP_STATUS_CODE = 422
+ end
+ end
+end
View
1  lib/twitter/response/raise_error.rb
@@ -8,6 +8,7 @@
require 'twitter/error/not_found'
require 'twitter/error/service_unavailable'
require 'twitter/error/unauthorized'
+require 'twitter/error/unprocessable_entity'
module Twitter
module Response

0 comments on commit fca4d17

Please sign in to comment.
Something went wrong with that request. Please try again.