HTTPstatus: HTTP status handler

View source: R/HTTPstatus.R

HTTPstatusR Documentation

HTTP status handler

Description

This function interprets the meaning of the HTTP status and returns the elements needed to create an appropriate warning and return something meaningful to the user.

Usage

HTTPstatus(status)

Arguments

status

numeric, the error status

Details

Code 200 should not be sent to this function as this is only designed to handle the errors (>=400)

Value

A list of two elements. 'warning' is used to create a warning message and 'rtn' will be used to return to the user.

Examples

HTTPstatus(400)

BiologicalRecordsCentre/plantnet documentation built on April 1, 2022, 12:25 a.m.