fix for data not defined for NotAuthorized and BadRequest

Signed-off-by: Sean Wesenberg <wookets@gmail.com>