BUG-18613: INTERNAL_SERVER_ERROR response got instead of BAD_REQUEST for invalid request (FALCON-459)