Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
ruby-liudesk-cmdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LiU IT - Infrastructure
ruby-liudesk-cmdb
Commits
bc050ecb
Verified
Commit
bc050ecb
authored
1 year ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
Add an error type for 406 errors
parent
6449bca4
No related branches found
No related tags found
Loading
Pipeline
#100326
failed
1 year ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/liudesk_cmdb.rb
+3
-0
3 additions, 0 deletions
lib/liudesk_cmdb.rb
with
3 additions
and
0 deletions
lib/liudesk_cmdb.rb
+
3
−
0
View file @
bc050ecb
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment