403 Forbidden JSON response example

Last updated 2026-05-20

Example JSON

Returned when the user is authenticated but unauthorised for the resource.

{
  "status": 403,
  "error": "Forbidden",
  "message": "You do not have permission to perform this action",
  "code": "permission_denied",
  "requiredPermission": "products:write"
}

Request examples

const res = await fetch('https://jsonexamples.com/http/403/Forbidden');
if (!res.ok) {
  const err = await res.json();
  console.error(res.status, err.message);
}

Try the live endpoint

Click below to call /http/403/Forbidden from your browser.

GET/http/403/Forbidden
{
  "hint": "Click 'Run' to call the live endpoint"
}

Common variations

IP / region block
{
  "status": 403,
  "error": "Forbidden",
  "message": "Service not available in your region",
  "code": "geo_blocked"
}

Convert this JSON

Generated starting points for TypeScript, JSON Schema, and Zod. Refine before shipping to production.

export interface 403Forbidden {
  "status": number;
  "error": string;
  "message": string;
  "code": string;
  "requiredPermission": string;
}
Back to examples

Related examples