Put HTTP header in a define
Return a JSON response in case of success