ApplicationText-based

application/problem+json

Problem Details (JSON)

Reference for application/problem+json, the MIME type for RFC 7807 problem details in HTTP API error responses.

MIME Type Detector

Drop a file to detect its MIME type — no upload, runs in your browser

📄

Drop any file here or click to choose

HTTP Content-Type Header

HTTP Header
Content-Type: application/problem+json; charset=utf-8

Quick Facts

MIME Typeapplication/problem+json
CategoryApplication
TypeText-based (human-readable)

Common Usage

RFC 7807 defines a standardized format for HTTP API error responses. Problem Details JSON includes a type URI, title, status code, detail message, and optional extensions.

Adopted by many REST APIs to provide consistent, machine-readable error information.

Code Examples

HTML
<!-- Set MIME type in meta or fetch headers -->
<meta http-equiv="Content-Type" content="application/problem+json">
Node.js
// Express.js
app.get('/file', (req, res) => {
  res.type('application/problem+json');
  res.send(data);
});

// Node.js http
res.writeHead(200, { 'Content-Type': 'application/problem+json' });
nginx
# nginx.conf — add to types block or use default
types {
    application/problem+json  json;
}

# Or set for a specific location
location /api/ {
    default_type application/problem+json;
}

Related MIME Types

More Application MIME Types

Other application types in the Application family

Related Tools

Explore More MIME Types

Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.