Frames should be able to respond to user actions with an error message that will be displayed to the user. This enables frame developers a quick and easy way to give users feedback in response to input.
Proposed changes
A frame may respond to an action or transaction intent POST with an error response consisting of:
content-type: application/json
headermessage
property with a maximum of 90 charactersPOST frame.server/action
400
content-type: application/json
{ message: "Invalid email" }
A Farcaster client must display the message
to a user when a frame responds with an error response and allow the user to resubmit the same frame.