How to get the http node status

Describe the problem/error/question

Hi Team,

Could you please assist me in obtaining the status information of a node, specifically regarding success and error states?

For example, if an HTTP node executes successfully, how can I determine its success status? Additionally, if the node encounters an error, how can I retrieve the error status in another set node?

Thanks for your help!

What is the error message (if any)?

NA

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.51.0
  • Database (default: SQLite): POSTGRESQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: MAC

Under ‘options’, select ‘response’:

Next, enable ‘Include Response Headers and Status’:

image

You will now get all the response headers and status information:

1 Like

But in error case I am not getting the statusCode.

for Google contact API
https://people.googleapis.com/v1/people/me/connections to fetch google contact

Ah, you can also enable the ‘never error’ option - that way the worfklow will continue, but you’ll have to handle any 404/500 etc errors yourself.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.