Portless®← Home

Reference

Errors

Error format, every error code, and tool errors vs gateway errors.

Error format

Every non-2xx response from the REST API has the same body:

Response · 403
{
  "error": {
    "code": "tool_disabled",
    "message": "`github.create_issue` is turned off in the dashboard."
  }
}

Branch on code, which is stable. message is for people and may change.

Gateway errors vs tool errors

Over the MCP endpoint, gateway errors during a tool call are also returned as tool results with isError: true, so the model can read them.

All error codes

StatusCodeMeaning
400invalid_jsonThe body isn't valid JSON.
400invalid_requestBad tool name or arguments, e.g. arguments isn't an object.
401missing_api_keyNo Authorization header, or it isn't a Bearer key.
401invalid_api_keyUnknown, revoked, or not a Portless key.
403tool_disabledThe tool is turned off in the dashboard.
404tool_not_foundNo tool with that name in this workspace.
404server_not_foundNo server with that id in this workspace.
405method_not_allowedGET or DELETE on the stateless MCP endpoint.
422invalid_endpointThe server's URL isn't a valid http(s) URL.
422endpoint_not_allowedThe server's URL points at a private or local address.
500credentials_unavailableSaved credentials can't be decrypted. Save them again.
500internal_errorUnexpected gateway error. Safe to retry reads.
501transport_not_supportedThe server uses stdio, which the hosted gateway can't start.
502upstream_errorThe MCP server failed, timed out, or rejected the gateway.
502upstream_unreachableThe server's host name couldn't be resolved.

Retrying

Status · Building

Coming soon

We're putting the finishing touches on Portless®. Follow along on X to hear the moment it's ready.