nitcorn :: HttpResponse :: json_error
Format: {"message": message, "status": status}
# Write error as JSON.
#
# Format: `{"message": message, "status": status}`
fun json_error(message: String, status: Int) do
var obj = new JsonObject
obj["status"] = status
obj["message"] = message
json(obj, status)
end
lib/popcorn/pop_json.nit:179,2--187,4