mirror of
https://github.com/EDCD/EDDN.git
synced 2026-11-30 02:22:04 +03:00
Return HTTP 400 rather than 200 on error.
This commit is contained in:
1 parent
fdeea2f7c2
commit
351b00aed2
1 file changed
+1
@@ -131,6 +131,7 @@ def parse_and_error_handle(data):
|
||||
))
|
||||
return 'OK'
|
||||
else:
|
||||
response.status = 400
|
||||
return "FAIL: " + str(parsed_message) + str(validationResults.messages)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user