Set the correct response code for unauthorized API calls