Added helper method for mapping status codes.