You are here: Foswiki>APPX Web>FullAPIList>0LASubrDataBadRequest (04 Mar 2020, JeanNeron)Edit Attach

.DATA BAD REQUEST

This subroutine allows you return an error message to the caller. This is only useful when working with the Data API (Release 5.5.0 & higher)


Usage:

      PASS         <error_message>            FIELD            SHARE? N
      GOSUB    --- .DATA BAD REQUEST

Description:

This subroutine will return a JSON formatted message to the caller in the form { "Error":"<error_message"}

<error_message> is the text you want to return to the caller (Optional). If nothing is received, then it will default to 'Invalid Request'.

Comments


 

-- %USERSIG{JeanNeron - 2020-03-03}%
Topic revision: r2 - 04 Mar 2020, JeanNeron
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback