hapi.js - Friendly error pages with extension events

Share this video with your friends

Send Tweet

hapi automatically responds with JSON for any error passed to a route's reply() method. But what if your application needs errors rendered in HTML? This lesson shows how to implement friendly HTML error messages using hapi extension events.