BadGateway.php 528 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-only
  5. */
  6. namespace OCA\DAV\Connector\Sabre\Exception;
  7. /**
  8. * Bad Gateway
  9. *
  10. * This exception is thrown whenever the server, while acting as a gateway or proxy, received an invalid response from the upstream server.
  11. *
  12. */
  13. class BadGateway extends \Sabre\DAV\Exception {
  14. /**
  15. * Returns the HTTP status code for this exception
  16. *
  17. * @return int
  18. */
  19. public function getHTTPCode() {
  20. return 502;
  21. }
  22. }