Skip to main content

Invalid port

typehttps://docs.frem.sh/reference/api/errors/invalid-port
HTTP status400 Bad Request

What it means

The {port} in POST /benches/{benchId}/ports/{port}/ticket was not an integer from 1 to 65535.

Example detail messages returned with this error:

  • The port must be an integer from 1 to 65535.

What to do

Send the TCP port your server listens on, as a plain decimal number such as 4096. Nothing was minted; fix the port and send the request again.

The port is checked before anything else, so this answer says nothing about whether the bench exists or is yours.

Response shape

All fremforge API errors are RFC 9457 problem+json:

{
  "type": "https://docs.frem.sh/reference/api/errors/invalid-port",
  "title": "Bad Request",
  "status": 400,
  "detail": "..."
}

Branch on type, not on title or detail - those are human-readable and may be reworded.