Remove 400 bad request responses and replace with 401/403 responses.