Learn R Programming

RestRserve (version 0.1.0.10)

http_statuses: Create standart responses/exceptions

Description

functions for convenient creation of standard http answers/exceptions

Usage

http_404_not_found(body = "Page not found", content_type = "text/plain",
  ...)

http_405_method_not_allowed(body = "Method Not Allowed", content_type = "text/plain", ...)

http_500_internal_server_error(body = "Internal Server Error", content_type = "text/plain", ...)

http_520_unknown_error(body = "Unknown Error", content_type = "text/plain", ...)

Arguments

body

reponse body

content_type

body content type

...

other parameters to create_response