Skip to content

Commit

Permalink
docs: clarify 410 error for api payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 23, 2022
1 parent b854bb8 commit 2c7ac3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion selfservice/flow/login/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ type submitSelfServiceLoginFlowBody struct{}
//
// API flows expect `application/json` to be sent in the body and responds with
// - HTTP 200 and a application/json body with the session token on success;
// - HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set;
// - HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body;
// - HTTP 400 on form validation errors.
//
// Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with
Expand Down
2 changes: 1 addition & 1 deletion selfservice/flow/registration/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ type submitSelfServiceRegistrationFlowBody struct{}
// API flows expect `application/json` to be sent in the body and respond with
// - HTTP 200 and a application/json body with the created identity success - if the session hook is configured the
// `session` and `session_token` will also be included;
// - HTTP 303 redirect to a fresh registration flow if the original flow expired with the appropriate error messages set;
// - HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body;
// - HTTP 400 on form validation errors.
//
// Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with
Expand Down

0 comments on commit 2c7ac3b

Please sign in to comment.