Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error handling to HTTP requests #198

Open
1 task done
RayDNoper opened this issue Aug 3, 2023 · 1 comment · Fixed by #201
Open
1 task done

Add error handling to HTTP requests #198

RayDNoper opened this issue Aug 3, 2023 · 1 comment · Fixed by #201
Assignees

Comments

@RayDNoper
Copy link
Collaborator

RayDNoper commented Aug 3, 2023

AS A Service Manager
I WANT TO specify the step to branch off to when HTTP request responds with non-OK
SO THAT that request can be modified programmatically or DSL to return information about situation

  • DSL step with HTTP non-OK response will step into specified DSL step
get_message:
  call: http.get
  args:
    url: http://localhost:8080/guards/fail/mock-response #step that always gives 403
    query:
      var: "value"
  result: the_message
  error: error_step

return_value:
  return: ${the_message.request}
  
error_step:
  return: "Resource unavailable"
  status: 404
@rasmusei
Copy link

rasmusei commented Dec 1, 2023

@turnerrainer, please check if accidentally closed.

@rasmusei rasmusei reopened this Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Status: Done
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants