Skip to main content

Error response rewrite

cp:otoroshi.next.plugins.NgErrorRewriter

This plugin catch http response with specific statuses and rewrite the response

categories:

  • Transformations

default configuration:

{
"ranges" : [ {
"from" : 500,
"to" : 599
} ],
"templates" : {
"default" : "<html>\n <body style=\"background-color: #333; color: #eee; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 40px\">\n <p>An error occurred with id: <span style=\"color: red\">${error_id}</span></p>\n <p>please contact your administrator with this error id !</p>\n </body>\n</html>"
},
"log" : true,
"export" : true
}