The Merge Freeze API now responds the same way to a bad access token on every endpoint, following the HTTP standard.
What’s Changed
On the branch, freeze log, and scheduled freeze endpoints:
| Situation | Before | Now |
|---|---|---|
No access_token provided | 403 or 500, depending on the endpoint | 401 Unauthorized |
| Wrong access token | 403 Forbidden | 401 Unauthorized |
| Valid token, but your plan doesn’t include this feature | 403 Forbidden | 403 Forbidden (unchanged) |
In short: 401 means “we don’t know who you are,” and 403 means “we know who you are, but you can’t do this.”
What You Need to Do
If your scripts or CI jobs check for a 403 to detect a bad or expired token, update them to check for 401. Requests with a valid token aren’t affected.
Questions?
See the web API docs or reach out at hello@mergefreeze.com.