[EXT-144] bad request instead of server error

change from 500 error to 400 error