Letting Ring to the json encoding
Return 404 when flag don't exist