eview v0.3.0 EView.RootRender

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

render(error, conn)

Render response object or error description following to our guidelines.

This method will look into status code and:

  • create error property from response data when HTTP status code is 4XX or 5XX;
  • create data property for other HTTP status codes.