fix($resource): provide HTTP status to the success

provide status code to the success callback

fixes #8341