mirror of https://gitee.com/bigwinds/arangodb
more errors
This commit is contained in:
parent
149d1f13aa
commit
af2902009a
|
@ -22,7 +22,9 @@ void TRI_InitialiseErrorMessages (void) {
|
|||
REG_ERROR(ERROR_DEAD_PID, "dead process identifier");
|
||||
REG_ERROR(ERROR_NOT_IMPLEMENTED, "not implemented");
|
||||
REG_ERROR(ERROR_BAD_PARAMETER, "bad parameter");
|
||||
REG_ERROR(ERROR_FORBIDDEN, "forbidden");
|
||||
REG_ERROR(ERROR_HTTP_BAD_PARAMETER, "bad parameter");
|
||||
REG_ERROR(ERROR_HTTP_FORBIDDEN, "forbidden");
|
||||
REG_ERROR(ERROR_HTTP_NOT_FOUND, "not found");
|
||||
REG_ERROR(ERROR_HTTP_METHOD_NOT_ALLOWED, "method not supported");
|
||||
REG_ERROR(ERROR_HTTP_SERVER_ERROR, "internal server error");
|
||||
|
|
|
@ -33,8 +33,12 @@ extern "C" {
|
|||
/// Will be raised when hitting an unimplemented feature.
|
||||
/// - 10: @CODE{bad parameter}
|
||||
/// Will be raised when the parameter does not fulfill the requirements.
|
||||
/// - 11: @CODE{forbidden}
|
||||
/// Will be raised when you are missing permission for the operation.
|
||||
/// - 400: @CODE{bad parameter}
|
||||
/// Will be raised when the HTTP request does not fulfill the requirements.
|
||||
/// - 403: @CODE{forbidden}
|
||||
/// Will be raised when the operation is forbidden.
|
||||
/// - 404: @CODE{not found}
|
||||
/// Will be raised when an URI is unknown.
|
||||
/// - 405: @CODE{method not supported}
|
||||
|
@ -367,6 +371,16 @@ void TRI_InitialiseErrorMessages (void);
|
|||
|
||||
#define TRI_ERROR_BAD_PARAMETER (10)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief 11: ERROR_FORBIDDEN
|
||||
///
|
||||
/// forbidden
|
||||
///
|
||||
/// Will be raised when you are missing permission for the operation.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define TRI_ERROR_FORBIDDEN (11)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief 400: ERROR_HTTP_BAD_PARAMETER
|
||||
///
|
||||
|
@ -377,6 +391,16 @@ void TRI_InitialiseErrorMessages (void);
|
|||
|
||||
#define TRI_ERROR_HTTP_BAD_PARAMETER (400)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief 403: ERROR_HTTP_FORBIDDEN
|
||||
///
|
||||
/// forbidden
|
||||
///
|
||||
/// Will be raised when the operation is forbidden.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define TRI_ERROR_HTTP_FORBIDDEN (403)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief 404: ERROR_HTTP_NOT_FOUND
|
||||
///
|
||||
|
|
|
@ -16,7 +16,9 @@ ModuleCache["/internal"].exports.errors = {
|
|||
"ERROR_DEAD_PID" : { "code" : 8, "message" : "dead process identifier" },
|
||||
"ERROR_NOT_IMPLEMENTED" : { "code" : 9, "message" : "not implemented" },
|
||||
"ERROR_BAD_PARAMETER" : { "code" : 10, "message" : "bad parameter" },
|
||||
"ERROR_FORBIDDEN" : { "code" : 11, "message" : "forbidden" },
|
||||
"ERROR_HTTP_BAD_PARAMETER" : { "code" : 400, "message" : "bad parameter" },
|
||||
"ERROR_HTTP_FORBIDDEN" : { "code" : 403, "message" : "forbidden" },
|
||||
"ERROR_HTTP_NOT_FOUND" : { "code" : 404, "message" : "not found" },
|
||||
"ERROR_HTTP_METHOD_NOT_ALLOWED" : { "code" : 405, "message" : "method not supported" },
|
||||
"ERROR_HTTP_SERVER_ERROR" : { "code" : 500, "message" : "internal server error" },
|
||||
|
|
Loading…
Reference in New Issue