eview v0.16.0 EView.Renders.Root
This module converts map to a structure that corresponds to Nebo #15 API Manifest response structure.
Link to this section Summary
Functions
Render response object or error description following to our guidelines.
Link to this section 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.