Skip to content

Commit

Permalink
Add Twitter::Error::UnprocessableEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Oct 6, 2012
1 parent d0200d7 commit fca4d17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/twitter/error/unprocessable_entity.rb
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions lib/twitter/response/raise_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fca4d17

Please sign in to comment.