extensions/utilities/ds_shelf_response_utils library
Functions
-
dsShelfErrorResponse(
String message, {int statusCode = 400}) → Response - Wrap an error message in a JSON response.
-
dsShelfJsonResponse(
Object data, {int statusCode = 200}) → Response - Wrap data in a JSON response.