Updated response.error object to return error fields instead of xhr object.