All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.fuelyour.vertxkuickstartcore.exceptions.HTTPStatusCode.kt Maven / Gradle / Ivy

There is a newer version: 0.0.19
Show newest version
package dev.fuelyour.vertxkuickstartcore.exceptions

/**
 * Enum representing http status codes.
 *
 * @property value The status code number
 */
enum class HTTPStatusCode(val value: Int) {
    OK(200),
    CREATED(201),
    ACCEPTED(202),
    NO_CONTENT(204),
    PERMANENT_REDIRECT(301),
    REDIRECT(302),
    BAD_REQUEST(400),
    UNAUTHORIZED(401),
    PAYMENT_REQUIRED(402),
    FORBIDDEN(403),
    NOT_FOUND(404),
    NOT_ALLOWED(405),
    CONFLICT(409),
    GONE(410),
    TOO_MANY_REQUESTS(429),
    INTERNAL_ERROR(500),
    BAD_GATEWAY(502),
    UNAVAILABLE(503),
    GATEWAY_TIMEOUT(504);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy