blob: 09521f9ea1f185edf1c20516dc6c0ac8600f3b9e [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "peridot/lib/firebase/status.h"
namespace firebase {
fxl::StringView StatusToString(Status status) {
switch (status) {
case Status::OK:
return "OK";
case Status::NETWORK_ERROR:
case Status::PARSE_ERROR:
return "PARSE_ERROR";
case Status::SERVER_ERROR:
return "SERVER_ERROR";
std::ostream& operator<<(std::ostream& os, Status status) {
return os << StatusToString(status);
} // namespace firebase