Interface ErrorResponseConflict

Shared fields between all error response variants.

Hierarchy

Properties

Properties

message: string

A brief explanation of the error.

null: {
    item: string;
}

Type declaration

  • item: string

    The conflicting item.

status: number

The HTTP status of the error.

type: "CONFLICT"

The error when a client's request causes a conflict, usually when they're trying to create something that already exists.


Example

{
"type": "CONFLICT",
"status": 409,
"message": "The request couldn't be completed due to conflicting with other data on the server",
"item": "username",
}