mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
feat: communicate outdated app/api client version
This commit is contained in:
committed by
Thea Schöbl
parent
e0b7e616b3
commit
cb196afded
@@ -19,14 +19,15 @@ location {{{ route }}} {
|
||||
return 300 'You have to supply a client/app version via the X-StApps-Version header!';
|
||||
}
|
||||
|
||||
# Version is unsupported or never existed
|
||||
# Version is unsupported by now or never existed (App/Client has to update)
|
||||
if ($proxyurl = unsupported) {
|
||||
{{{ cors }}}
|
||||
return 404;
|
||||
return 426;
|
||||
}
|
||||
# The version existed, but is outdated now (App should update)
|
||||
# The version existed, but is outdated now (App/Client should update)
|
||||
if ($proxyurl = outdated) {
|
||||
return 404;
|
||||
{{{ cors }}}
|
||||
return 426;
|
||||
}
|
||||
# The version is correct, but backend is not responding
|
||||
if ($proxyurl = unavailable) {
|
||||
|
||||
Reference in New Issue
Block a user