Represents the result returned from the /http
endpoint.
-
code (
int
): The HTTP status code returned by the endpoint. -
name (
str
): The standard name associated with the HTTP status code. -
description (
str
): A brief explanation of the HTTP status code.
result = await alex_api.http_code(200)
print(result.code) # 200
print(result.name) # OK
print(result.description) # Indicates that the request has succeeded.