Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Chiefs
ChiefSend2
Commits
81a80038
Commit
81a80038
authored
Mar 23, 2021
by
Lukas Böhm
🎱
Browse files
fix response codes
parent
a68d83e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/api.go
View file @
81a80038
...
...
@@ -77,7 +77,7 @@ func GetShare(w http.ResponseWriter, r *http.Request) *HTTPError {
return
&
HTTPError
{
err
,
"Can't fetch data"
,
500
}
}
if
share
.
IsTemporary
==
true
{
return
&
HTTPError
{
err
,
"Share is not finalized"
,
4
24
}
return
&
HTTPError
{
err
,
"Share is not finalized"
,
4
03
}
}
// auth
...
...
swagger.yaml
View file @
81a80038
...
...
@@ -51,8 +51,8 @@ paths:
description
:
Unauthorized
'
404'
:
description
:
Not Found
'
4
24
'
:
description
:
F
ailed Depen
den
cy
(still temporary - not closed)
'
4
03
'
:
description
:
F
orbid
den (still temporary - not closed)
security
:
-
BasicAuth
:
[]
...
...
@@ -71,9 +71,7 @@ paths:
'
404'
:
description
:
Not Found
'
403'
:
description
:
Forbidden
'
424'
:
description
:
Failed Dependency (already closed)
description
:
Forbidden (already closed)
delete
:
summary
:
delete a share
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment