EView.Renders.Root (eview2 v0.15.2)
This module converts map to a structure that corresponds to Nebo #15 API Manifest response structure.
Summary
Functions
Render response object or error description following to our guidelines.
Functions
Link to this function
render(error, conn)
Render response object or error description following to our guidelines.
This method will look into status code and:
- create
errorproperty from response data when HTTP status code is4XXor5XX; - create
dataproperty for other HTTP status codes.