I would like to throw 410 for the deleted pages based on the API response #74877
Unanswered
sandeepbojan
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Prior to switching to APP Router, I could throw 410 depending on server-side API responses without doing an extra API request. I am unable to do that now. One way I found was to use the middleware, but this requires an extra API call.
Making extra API call from middleware is actually introducing more rework or me and I'm worried if it might also cause some latency in the application
I would like to do this in a single API call, such as:
Could someone please advise me on the best approach to accomplish this?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions