Module: PostfinancecheckoutRubySdk::ApiExceptionErrorCodes
- Defined in:
- lib/postfinancecheckout-ruby-sdk/api_exception_error_codes.rb
Constant Summary collapse
- BAD_REQUEST =
The request was not accepted often due to missing or invalid parameters
400- UNAUTHORIZED =
The necessary authentication credentials are missing or incorrect
401- FORBIDDEN =
The application user is missing the required permissions
403- NOT_FOUND =
The requested resource was not found
404- NOT_ACCEPTABLE =
The requested response format is not supported
406- CONFLICT =
The request conflicts with another request often because of to optimistic locking
409- PAYLOAD_TOO_LARGE =
Too many operations in a bulk request
413- UNSUPPORTED_MEDIA_TYPE =
The request provides unsupported or invalid data
415- RANGE_NOT_SATISFIABLE =
The pagination offset exceeds the limit
416- UNPROCESSABLE_ENTITY =
The request is well-formed but contains semantic errors. Check the response body for details
422- TOO_MANY_REQUESTS =
Too many requests hit the API too quickly
429- INTERNAL_SERVER_ERROR =
An internal error occurred on the server
500
Class Method Summary collapse
-
.is?(exception, code) ⇒ Boolean
Checks if the given exception matches the specific error code.
Class Method Details
.is?(exception, code) ⇒ Boolean
Checks if the given exception matches the specific error code.
56 57 58 |
# File 'lib/postfinancecheckout-ruby-sdk/api_exception_error_codes.rb', line 56 def self.is?(exception, code) exception.code == code end |