-
Notifications
You must be signed in to change notification settings - Fork 401
Expand file tree
/
Copy patherrors.rb
More file actions
23 lines (17 loc) · 766 Bytes
/
errors.rb
File metadata and controls
23 lines (17 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module LinkedIn
module Errors
class LinkedInError < StandardError; end
# Raised when a 401 response status code is received
class UnauthorizedError < LinkedInError; end
# Raised when a 400 response status code is received
class GeneralError < LinkedInError; end
# Raised when a 403 response status code is received
class AccessDeniedError < LinkedInError; end
# Raised when a 404 response status code is received
class NotFoundError < StandardError; end
# Raised when a 500 response status code is received
class InformLinkedInError < StandardError; end
# Raised when a 502 or 503 response status code is received
class UnavailableError < StandardError; end
end
end