user_controller#manage_device return after render error json refs #124

avoid DoubleRender and provide error status code.