CustomError

  • The provided content defines a custom error structure for API responses.

  • The custom error is represented in JSON format with two fields: code and message .

  • The code field is an enumeration ( enum ) that refers to a specific CustomErrorCode .

  • The message field is a string containing the error's description.

Custom error.

JSON representation
 { 
 "code" 
 : 
 enum (  CustomErrorCode 
 
) 
 , 
 "message" 
 : 
 string 
 } 
Fields
code

enum ( CustomErrorCode )

The custom error code.

message

string

The error message.

Create a Mobile Website
View Site in Mobile | Classic
Share by: