exit with error code 1 after raising an 400 from the API