Fixed exceptions back to use proper status codes.
Updated delete tests.