Handling Redirects


Hi there, I have a question regarding the handling of redirects. I have a (purposely ambiguous) route, POST /resource/:id/action, which returns a next url. Naturally, I would want to return a status of 302 with a redirect url, but this doesnt seem to be jsonapi compliant as the spec says that a POST should return a 2xx or a 4xx. Is there a recommendation regarding how a redirect should be handled?