fleet/website/api
Eric 703e825105
Website: Add two exits to vpp app metadata proxy (#43531)
Related to: https://github.com/fleetdm/confidential/issues/15379

Changes:
- Added two exits to the VPP metadata proxy that are used when the Apple
API returns errors. `appleApiReturnedServerError` Is returned when the
Apple API returns a 500 error, and `appleApiReturnedForbiddenResponse`
is used when the Apple API returns a 403 response.
- Updated the error handler in the VPP metadata proxy to return the body
of the logged error.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Improved Apple App Store API error handling: forbidden (403) and
server (500) responses are now distinguished and mapped to specific
error outcomes.
* Other API errors now return the API response body (not the internal
error object), and error logging text was clarified for better
diagnostics.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-14 11:06:41 -05:00
..
controllers Website: Add two exits to vpp app metadata proxy (#43531) 2026-04-14 11:06:41 -05:00
helpers Adding cpc for paid search (#43274) 2026-04-10 09:18:54 -04:00
hooks/custom Website: Update attribution cookie (#40532) 2026-02-25 15:18:14 -06:00
models Website: add support for new usage statistics (#42923) 2026-04-10 08:27:02 -05:00
policies Website: (Microsoft compliance proxy) Add support for multiple compliance partner shared secret config variables. (#38284) 2026-01-13 17:24:40 -06:00
responses Website: Fleet Sandbox (#6380) 2022-08-12 17:31:01 -05:00