raise error instead of send_error