Difference: 0LASubrDataBadRequest (1 vs. 2)

Revision 22020-03-04 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="FullAPIList"

.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:

Changed:
<
<
      PASS         <stream_name>              FIELD            SHARE? N
      PASS         <pathname>                 FIELD            SHARE? N
      PASS         <open_mode>                FIELD            SHARE? N
      PASS         <line_termination>         FIELD            SHARE? N
      GOSUB    --- .STREAM OPEN
      *        check for errors
      IF       --- .STREAM OPEN               NE

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

 

Description:

Added:
>
>
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


<--/commentPlugin-->

-- Jean Neron - 2020-03-03 \ No newline at end of file

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback