mirror of
https://github.com/EDCD/EDDN.git
synced 2026-11-28 02:12:04 +03:00
Merge pull request #25 from Marginal/retire_v1
Add reason text to reply for outdated schemas.
This commit is contained in:
commit
e8e705391d
1 file changed
+1
-1
+1
-1
@@ -132,7 +132,7 @@ def parse_and_error_handle(data):
|
||||
|
||||
# Here we check if an outdated schema has been passed
|
||||
if parsed_message["$schemaRef"] in Settings.GATEWAY_OUTDATED_SCHEMAS.keys():
|
||||
response.status = 426
|
||||
response.status = '426 Upgrade Required' # Bottle (and underlying httplib) don't know this one
|
||||
statsCollector.tally("outdated")
|
||||
return "FAIL: The schema you have used need an upgrade. Update your software."
|
||||
|
||||
|
||||
Reference in new issue
Block a user