Change an error 500 to an error 400.