0
I am trying to return a specific status and a message in my api, I tried this way:
return response.status(409).json({message: 'User already registered'})
But I’m getting:
Response is not defined
I tried to import Sponse:
const response = use('Adonis/Src/Response')
But this way I get:
Sponse.status is not a Function
Put the entire method where that code is, please.
– Taffarel Xavier