400 error instead of internal server error (map)