2021-04-12 13:32:25 +00:00
|
|
|
import PropTypes from "prop-types";
|
2020-11-04 20:07:53 +00:00
|
|
|
|
|
|
|
|
export default PropTypes.shape({
|
|
|
|
|
http_status: PropTypes.number,
|
|
|
|
|
base: PropTypes.string,
|
|
|
|
|
});
|
2021-05-21 16:29:28 +00:00
|
|
|
|
2023-08-02 15:29:49 +00:00
|
|
|
// Response created by utilities/format_error_response
|
2022-03-01 18:28:51 +00:00
|
|
|
export interface IOldApiError {
|
|
|
|
|
http_status: number;
|
|
|
|
|
base: string;
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-04 20:26:10 +00:00
|
|
|
export interface IError {
|
2021-05-21 16:29:28 +00:00
|
|
|
name: string;
|
|
|
|
|
reason: string;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-02 15:29:49 +00:00
|
|
|
// Response returned by API when there is an error
|
2021-05-21 16:29:28 +00:00
|
|
|
export interface IApiError {
|
|
|
|
|
message: string;
|
|
|
|
|
errors: IError[];
|
2023-08-02 15:29:49 +00:00
|
|
|
uuid?: string;
|
2021-05-21 16:29:28 +00:00
|
|
|
}
|