StatusCodeRecognizer

class StatusCodeRecognizer(statusCode: Int, colorInformational: Int = 0xFF2b3f57.toInt(), colorSuccess: Int = 0xFF2cb87b.toInt(), colorRedirectional: Int = 0xFF3c7df5.toInt(), colorClientError: Int = 0xFFf79705.toInt(), colorServerError: Int = 0xFFf43c56.toInt())

A class that recognizes the status code of an HTTP response and provides the corresponding color and description.

Constructors

Link copied to clipboard
constructor(statusCode: Int, colorInformational: Int = 0xFF2b3f57.toInt(), colorSuccess: Int = 0xFF2cb87b.toInt(), colorRedirectional: Int = 0xFF3c7df5.toInt(), colorClientError: Int = 0xFFf79705.toInt(), colorServerError: Int = 0xFFf43c56.toInt())

Functions

Link copied to clipboard
fun getColor(): Int

Returns the color corresponding to the status code of the HTTP response.

Link copied to clipboard

Returns the description corresponding to the status code of the HTTP response.