I am trying to send a json response back to the application with a status code. This what I tired but didn't work.
if (validation.fails()) {
console.log(validation.messages())
return response.json(validation.messages(),false,401)
// or return response.json(validation.messages(),401)
// It always sends 200 status code
}