Updated Error to return headers too.