mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-28 03:22:50 -04:00
30 lines
528 B
TypeScript
30 lines
528 B
TypeScript
/**
|
|
* Represents the error response returned by the API.
|
|
*/
|
|
export type ApiErrorResponse = {
|
|
/**
|
|
* The main error message.
|
|
*/
|
|
message: string;
|
|
|
|
/**
|
|
* The error code associated with this error.
|
|
*/
|
|
code: string;
|
|
|
|
/**
|
|
* Additional details about the error.
|
|
*/
|
|
details: Record<string, unknown>;
|
|
|
|
/**
|
|
* The HTTP status code associated with this error.
|
|
*/
|
|
statusCode: number;
|
|
|
|
/**
|
|
* The timestamp when the error occurred.
|
|
*/
|
|
timestamp: string; // Using string for ISO date format
|
|
};
|