Peak problem types
Home / homematch / file_refused

The file is not accepted.

Code
file_refused
Type
https://problems.peakintelligence.ch/homematch/file-refused
Status
422 Unprocessable Content
Audience
user. The person using the client can act on it. A client may show detail to them; it is worded in the request's language.
Service
homematch

Description

The file was refused before it was stored: it is larger than this upload allows, it has a file extension the upload does not take, or its content is not what its name says. The refusalReason extension member says which. Show the person the problem's detail, which names the limit or the accepted types, and let them choose another file.

Example

HTTP/1.1 422 Unprocessable Content
Content-Type: application/problem+json

{
  "type": "https://problems.peakintelligence.ch/homematch/file-refused",
  "title": "The file is not accepted.",
  "status": 422,
  "code": "file_refused",
  "audience": "user",
  "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