Authentication errors do not return API structures

HTTP 401 Authentication errors do not get far enough into the API to have the nice errors structures returned. Respond with an Authentication error instead of a string parsing error.