# `NuxtError` discrepancy between server and client
Api endpoint : throw error always response with content-type = text/html
3.xpending triagenitro
Bug: `throwError` on SSR is giving different DX
3.xbugvite🔨 p3-minor
Throwing an error on pages with /api/ in the path renders a JSON response instead of HTML
good first issue3.xbug🔨 p3-minor