Skip to content

ServiceException

seyyed edited this page Aug 7, 2021 · 2 revisions

This class Used For generate an Exception

Structure

Service Exception Used For Generate a RunTime Exception

  • code ( the exception Code )
  • message ( Message For Exception )
  • HttpStatus

CONTINUE(100, "Continue")

SWITCHING_PROTOCOLS(101, "Switching Protocols")

PROCESSING(102, "Processing")

CHECKPOINT(103, "Checkpoint")

OK(200, "OK")

CREATED(201, "Created")

ACCEPTED(202, "Accepted")

NON_AUTHORITATIVE_INFORMATION(203, "Non-Authoritative Information")

NO_CONTENT(204, "No Content")

RESET_CONTENT(205, "Reset Content")

PARTIAL_CONTENT(206, "Partial Content")

MULTI_STATUS(207, "Multi-Status")

ALREADY_REPORTED(208, "Already Reported")

IM_USED(226, "IM Used")

MULTIPLE_CHOICES(300, "Multiple Choices")

MOVED_PERMANENTLY(301, "Moved Permanently")

FOUND(302, "Found")

SEE_OTHER(303, "See Other")

NOT_MODIFIED(304, "Not Modified")

TEMPORARY_REDIRECT(307, "Temporary Redirect")

PERMANENT_REDIRECT(308, "Permanent Redirect")

BAD_REQUEST(400, "Bad Request")

UNAUTHORIZED(401, "Unauthorized")

PAYMENT_REQUIRED(402, "Payment Required")

FORBIDDEN(403, "Forbidden")

NOT_FOUND(404, "Not Found")

METHOD_NOT_ALLOWED(405, "Method Not Allowed")

NOT_ACCEPTABLE(406, "Not Acceptable")

PROXY_AUTHENTICATION_REQUIRED(407, "Proxy Authentication Required")

REQUEST_TIMEOUT(408, "Request Timeout") ....

Clone this wiki locally