Next.js: Default Message for Status Code 410 in Error Page

Created on 24 Jul 2019  路  3Comments  路  Source: vercel/next.js

Feature request

Is your feature request related to a problem? Please describe.

I'm using next/error and was expecting a standard message for status code 410

Describe the solution you'd like

Add Page Deleted as the default message for 410

Describe alternatives you've considered

Users can easily pass in a custom title prop, but it would be nice to provide a default

Most helpful comment

Echoing @timneutkens, Next.js doesn't emit a 410 status code by default.

Additionally, it's probably even more rare to hit a 410 because AFAIK users would typically 301 redirect to the new version.
It's not worth the bundle size increase in this case, IMO.

Do note, you can provide a custom message to the error component via the title prop.

All 3 comments

I don't think this makes sense to add as a default as 410 is really not that common.

Echoing @timneutkens, Next.js doesn't emit a 410 status code by default.

Additionally, it's probably even more rare to hit a 410 because AFAIK users would typically 301 redirect to the new version.
It's not worth the bundle size increase in this case, IMO.

Do note, you can provide a custom message to the error component via the title prop.

got it - thanks 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

irrigator picture irrigator  路  3Comments

renatorib picture renatorib  路  3Comments

kenji4569 picture kenji4569  路  3Comments

swrdfish picture swrdfish  路  3Comments

YarivGilad picture YarivGilad  路  3Comments