Skip to content

Question: Is there a way of intercepting the Joi validation to send a "pretty" 400 page to client? #725

@nelsonic

Description

@nelsonic

Hi @Marsup,
I've read through the Hapi / Joi API/Docs but not been able to figure out how to intercept a request - which I do want Joi to validate - but want to send a "pretty" error page instead of the "raw" version.

At the moment we have:
register-iphone4s-sim
hapi-reg-joi-400-error
We would prefer to return a more user-friendly error page.

Can you please point us to the docs/example where this is?
Thanks!

Metadata

Metadata

Assignees

Labels

supportQuestions, discussions, and general support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions