Skip to content
Snippets Groups Projects
Verified Commit bc050ecb authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Add an error type for 406 errors

parent 6449bca4
No related branches found
No related tags found
Loading
Pipeline #100326 failed
......@@ -37,6 +37,8 @@ module LiudeskCMDB
ForbiddenError.new body, code
when "404"
NotFoundError.new body, code
when "406"
NotAcceptableError.new body, code
when "422"
UnprocessableError.new body, code
else
......@@ -66,6 +68,7 @@ module LiudeskCMDB
class ForbiddenError < RequestError; end
class NotFoundError < RequestError; end
class NotAcceptableError < RequestError; end
class UnprocessableError < RequestError; end
class ServerError < RequestError; end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment