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 error property from response data when HTTP status code is 4XX or 5XX;
  • create data property for other HTTP status codes.