Skip to main content
HTTP 301 Moved Permanently
The resource has a new permanent URL given in the Location header. Clients should update their references.
3xx · Redirection✗ not retryable — fix the request instead
In AI APIs specifically
API base-URL typos (http vs https, trailing slash) often surface as 301s that drop POST bodies on redirect.
Fix checklist
- Update to the URL in the Location header.
- Use https and the exact documented base URL — redirects can downgrade POST to GET.
Spec: RFC reference
Related status codes
302 Found
The resource temporarily lives at a different URL.
304 Not ModifiedConditional GET: the cached copy is still valid; the server sends no body..
307 Temporary RedirectLike 302 but the method and body MUST be preserved when following the redirect..
308 Permanent RedirectLike 301 but the method and body MUST be preserved.