Skip to main content
Version: 6.0.0

Checking Error Information

BACKND error information consists of three elements: ErrorCode, StatusCode, and Message.
When an error is returned from the server, you can respond effectively by considering the above three types of information.

GetStatusCode

public string GetStatusCode();

Description

Checks the response status code.

var bro = Backnd.PlayerTable.Get("tableName", "rowIndate");
var statusCode = bro.GetStatusCode();

Return casess

When the request is successful
Depending on the type of request, 200, 201, or 204 is returned.

When the request fails
A number greater than or equal to 300 is returned.

GetErrorCode

public string GetErrorCode();

Description

Checks the response error code.

Example

var bro = Backnd.PlayerTable.Get("tableName", "rowIndate");
var errorCode = bro.GetErrorCode();

Return casess

When the request is successful null

When the request fails Error information

GetMessage

public string GetMessage();

Description

Checks the response message.

var bro = Backnd.PlayerTable.Get("tableName", "rowIndate");
var msg = bro.GetMessage();

Return casess

When the request is successful
Success

When the request fails
Error details