Added status code to render_api_error call

Signed-off-by: Craig Sullivan <craig@melbourne-systems.com>