Return HTTP 400 rather than 200 on error.

This commit is contained in:
James Muscat 2014-12-17 13:40:41 +00:00
parent fdeea2f7c2
commit 351b00aed2

View File

@ -131,6 +131,7 @@ def parse_and_error_handle(data):
))
return 'OK'
else:
response.status = 400
return "FAIL: " + str(parsed_message) + str(validationResults.messages)