hapi.js - Friendly error pages with extension events

Mike Frey
InstructorMike Frey

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.