Return an HTTP error response with status

Like the rest of the API, errors are formated as JSON:

{ "status": 404, "message": "Not found" }

Property definitions

nitc :: api_base $ HttpResponse :: api_error
	# Return an HTTP error response with `status`
	#
	# Like the rest of the API, errors are formated as JSON:
	# ~~~json
	# { "status": 404, "message": "Not found" }
	# ~~~
	fun api_error(status: Int, message: String) do
		json(new APIError(status, message), status)
	end
src/doc/api/api_base.nit:137,2--145,4