mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-19 18:17:37 +03:00
Return HTTP 400 rather than 200 on error.
This commit is contained in:
parent
fdeea2f7c2
commit
351b00aed2
@ -131,6 +131,7 @@ def parse_and_error_handle(data):
|
||||
))
|
||||
return 'OK'
|
||||
else:
|
||||
response.status = 400
|
||||
return "FAIL: " + str(parsed_message) + str(validationResults.messages)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user