Skip to content

Http

Node to make http requests. The node is fully executed after the response header is received. The http connection is kept open until the response body stream is fully read or somehow closed.

Inputs#

Port Description
Method
The http method to use for the request.
URL
The URL to make the request to. Must start with http:// or https://.
Body
Optional body to send with the request.
Header
Optional headers to send with the request.

Outputs#

Port Description
Success
The http request was successful. The status code is 2xx.
Error
The http request was successful. The status code is not 2xx.
Status Code
The status code of the response.
Body
The response body.

Addendum#

HTTP status messages provide information about the outcome of an HTTP request. They are categorized into five groups:

  • 1xx Informational: The request was received and the process is continuing.

    • 100 Continue: The server has received the request headers, and the client should proceed to send the request body.
    • 101 Switching Protocols: The requester has asked the server to switch protocols, and the server is acknowledging that it will do so.
  • 2xx Success: The request was successfully received, understood, and accepted.

    • 200 OK: The request was successful.
    • 201 Created: The request was successful, and a new resource was created.
  • 3xx Redirection: Further action must be taken to complete the request.

    • 301 Moved Permanently: The resource has permanently moved to a new URI.
    • 302 Found: The resource has temporarily moved to a different URI.
  • 4xx Client Error: The request contains bad syntax or cannot be fulfilled.

    • 400 Bad Request: The server could not understand the request due to invalid syntax.
    • 401 Unauthorized: Authentication is required and has failed or has not yet been provided.
  • 5xx Server Error: The server failed to fulfill a valid request.

    • 500 Internal Server Error: The server encountered an unexpected condition.
    • 503 Service Unavailable: The server is not ready to handle the request, often due to maintenance or overload.

ID: http@v1