changed 412 status code to 400