Usage
TheuseError composable returns the global Nuxt error that is being handled and is available on both client and server. It provides a reactive, SSR-friendly error state across your app.
Parameters
This composable does not take any parameters.Return Values
Returns a
Ref containing the current Nuxt error (or undefined if there is no error). The error object is reactive and will update automatically when the error state changes.HTTP status code of the error.
HTTP status text of the error.
Error message.
Optional additional error data.
Flag indicating this is an error object.