Skip to content
Discussion options

You must be logged in to vote

Hello @vladyslav2

This behavior is actually expected in Ory Kratos, though it can be confusing. When you make a GET request to /self-service/registration?flow=, you're using the correct endpoint to retrieve the flow data, but Kratos returns a 400 status code because it's enforcing that certain operations should only be performed with specific HTTP methods.

Kratos returns different status codes based on the flow state:

  • HTTP 200 is only sent when a flow is successfully completed
  • HTTP 400 is returned for form validation errors or when the flow is still in progress
  • HTTP 422 is returned when a browser location change is required
  • Ory Kratos API Reference explains that the registration flow end…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants