Typical API error response structure from DRF API.

interface ApiError {
    detail?: string;
    non_field_errors?: string[];
    [field: string]: string | string[] | any;
}

Indexable

  • [field: string]: string | string[] | any

Properties

detail?: string
non_field_errors?: string[]