UnsupportedMediaTypeError

statusintegerrequiredread-only

The HTTP status code of the error. Useful when passing the response
body to child properties in a frontend UI. Must be returned as an integer.

Example:415

titlestringrequiredread-only

A short, human-readable summary of the problem. It should not
change between occurences of a problem, except for localization.
Should be provided as “Sentence case” for direct use in the UI.

Example:UnsupportedMediaType

typestringread-only

The error type.

Example:https://httpstatuses.com/415

instancestringrequiredread-only

Used to return the correlation ID back to the user, in the format
kong:trace:<correlation_id>. This helps us find the relevant logs
when a customer reports an issue.

Example:kong:trace:1234567890

detailstringrequiredread-only

A human readable explanation specific to this occurence of the problem.
This field may contain request/entity data to help the user understand
what went wrong. Enclose variable values in square brackets. Should be
provided as “Sentence case” for direct use in the UI.

Example:UnsupportedMediaType

Example

UUID

string

Contains a unique identifier used for this resource.

Example

CaptureContentType

string

Allowed values:headersbody

CaptureLogType

string

Allowed values:erroraccess

CPUProfile

object

CPUProfile contains parameters for cpu profile collection

modestringrequired

The mode of cpu profile

Allowed values:timeinstruction

Example:time

sampling_intervalinteger(int64)

The interval for sampling. If the mode is ‘time’, this value is in microseconds. If the mode is ‘instruction’, this value is the step count.

Example:1000

Example