render error info back to the client