ErrorResponse
interface ErrorResponse {
// example
// status: 400,
// method: 'post',
// url: 'http://127.0.0.1:24321/builder/send',
// error_code: 'P01D101',
// request_body: '{"_hint":"mitum-currency-transfer-operation-v0.0.1","fact":{....}}'
// error_message: 'handle new operation invalid signing : check threshold unknown key found, 26vyVJFoLZqVPmP8UADoNCsEyJYD4498vdy7uoiHgFKRUmpu'
status?: number;
method: string | undefined;
url: string | undefined;
error_code: string;
request_body: string | undefined;
error_message: string;
}status: The HTTP response status code indicating an error. For example, it could be 400 for a Bad Request.
method: The HTTP method used for the request. For instance, it could be GET, POST, PUT, etc.
url: The URL address to which the request was sent. This represents the destination of the request.
error_code: An string combined with
pcodeanddcode.pcodeanddcodeare error codes associated with the error response from the blockchain network.pcodeprovides information about at what stage the error occurred, anddcodeprovides information about the reason for the error. In case ofgetmethod,error_codeis given as an empty string.request_body: The data included in the body of the HTTP request. This contains any data sent along with the request. If the request method is GET, the request body will be undefined.
error_message: A human-readable error message providing details about the error encountered. This message can help in diagnosing and troubleshooting issues.
Example
Last updated