Peak problem types
Home / homematch / media_upload_wrong_context

The upload was made for something else.

Code
media_upload_wrong_context
Type
https://problems.peakintelligence.ch/homematch/media-upload-wrong-context
Status
400 Bad Request
Audience
client. Only the calling software can act on it. A client shows its own general failure and quotes traceId; detail is in English, for developers.
Service
homematch

Description

The upload was made for another use or another record than the one naming it. It was not used. This is a client defect: make the upload for the use and record that names it.

Example

HTTP/1.1 400 Bad Request
Content-Type: application/problem+json

{
  "type": "https://problems.peakintelligence.ch/homematch/media-upload-wrong-context",
  "title": "The upload was made for something else.",
  "status": 400,
  "code": "media_upload_wrong_context",
  "audience": "client",
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}

A real answer also carries detail when there is something to say about this occurrence, and may carry errors or members of the type's own, which the service's OpenAPI document describes. When to ask again is the Retry-After header.

Declared by