Return 400 instead of 404 in case of InvalidURIError