Commit 81a80038 authored by Lukas Böhm's avatar Lukas Böhm 🎱
Browse files

fix response codes

parent a68d83e7
......@@ -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", 424}
return &HTTPError{err, "Share is not finalized", 403}
}
// auth
......
......@@ -51,8 +51,8 @@ paths:
description: Unauthorized
'404':
description: Not Found
'424':
description: Failed Dependency (still temporary - not closed)
'403':
description: Forbidden (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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment