dev.fuelyour.vertxkuickstartcore.exceptions.HTTPStatusCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-kuickstart-core Show documentation
Show all versions of vertx-kuickstart-core Show documentation
Core libraries used by microservices created from the vertx-kuickstart template
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);
}