title: Custom validation error message on hapi with joi
body: <p>I'm implementing custom validation error message on hapi with joi.</p>
  
  <pre><code>    server.route({
          path: '/test/inputname',
          method: ['PUT','POST'],
          handler: async (request, h) =&gt; {
              try{
                  const created =  await MemberSchema.addUser(
                      {"input_name": request.payload.input_name}
                  )
                  return h.response(created).code(201);
              } catch(err){
                  console.log(err.message);
                  return h.response(err.message).code(400);
              }
          },
          options: {
              validate: {
                  payload: Joi.object({
                      input_name: Joi.string()
                          .min(2)
                          .max(30)
                          .required()
                          .messages({
                              'string.base' : `"input_name" should be a type of 'text'`,
                              'string.empty' : `"input_name" cannot be an empty field`,
                              'string.min' : `"input_name" should have a minimum length of {#limit}`,
                              'any.required' : `"input_name" is a required field`,
                          }),
                  }),
                  options:{
                      allowUnknown: true
                      ,abortEarly: false
                  }
              }
          }
      });
  
  </code></pre>
  
  <p>However when I post invalid data, it always displayed as follows.</p>
  
  <pre><code>"statusCode": 400,
  "error": "Bad Request",
  "message": "Invalid request payload input"
  </code></pre>
  
  <p>How can it be solved?</p>
  
  <p>p.s 
  I'm using the following version.</p>
  
  <pre><code>node v12.16.2
  "@hapi/hapi": "^19.1.1",
  "@hapi/joi": "^17.1.1",
  </code></pre>