var t = Object.defineProperty;
var a = (n, r) => t(n, "name", { value: r, configurable: !0 });
import { Code as e } from "../code.js";
function i(n) {
  switch (n) {
    case 400:
      return e.Internal;
    case 401:
      return e.Unauthenticated;
    case 403:
      return e.PermissionDenied;
    case 404:
      return e.Unimplemented;
    case 429:
      return e.Unavailable;
    case 502:
      return e.Unavailable;
    case 503:
      return e.Unavailable;
    case 504:
      return e.Unavailable;
    default:
      return e.Unknown;
  }
}
a(i, "codeFromHttpStatus");
export {
  i as codeFromHttpStatus
};
