From a7e06bef91d3ff4fc6d15f56ae163f4cd668cd48 Mon Sep 17 00:00:00 2001 From: James Collins Date: Mon, 6 Feb 2023 09:49:13 +1000 Subject: [PATCH] added --- app/Enum/CurlErrorCodes.php | 169 ++++++++++++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 app/Enum/CurlErrorCodes.php diff --git a/app/Enum/CurlErrorCodes.php b/app/Enum/CurlErrorCodes.php new file mode 100644 index 0000000..64316ee --- /dev/null +++ b/app/Enum/CurlErrorCodes.php @@ -0,0 +1,169 @@ + 'Unsupported protocol.', + 2 => 'Failed initalization.', + 3 => 'Invalid URL format.', + 4 => 'CURLE_URL_MALFORMAT_USER.', + 5 => 'Could not resolve proxy.', + 6 => 'Could not resolve host.', + 7 => 'Could not connect to host.', + 8 => 'Invalid reply from FTP server.', + 9 => 'Access denied on host.', + 11 => 'Invalid pass reply from FTP server.', + 13 => 'Invalid pasv reply from FTP server.', + 14 => 'Invalid 227 format from FTP server.', + 15 => 'Could not get FTP host.', + 17 => 'Could not set type for FTP transfer.', + 18 => 'Invalid partial size.', + 19 => 'Could not retrieve file from FTP server.', + 21 => 'Quote error.', + 22 => 'HTTP server returned error.', + 23 => 'File write error.', + 25 => 'Upload file error.', + 26 => 'File read error.', + 27 => 'Out of memory.', + 28 => 'File transfer timed out.', + 30 => 'Invalid port for FTP server.', + 31 => 'Could not use rest for FTP server.', + 33 => 'File range error.', + 34 => 'Invalid POST for HTTP server.', + 35 => 'SSL connectio error.', + 36 => 'Invalid resume download.', + 37 => 'Could not read file.', + 38 => 'Could not bind to LDAP.', + 39 => 'LDAP search failed.', + 41 => 'Function not found.', + 42 => 'Aborted by callback.', + 43 => 'Bad function argument.', + 45 => 'Interface failed.', + 47 => 'Too many redirects.', + 48 => 'Unknown telnet option.', + 49 => 'Telnet option syntax invalid.', + 51 => 'Peer failed verification.', + 52 => 'Did not receive any data.', + 53 => 'SSL engine was not found.', + 54 => 'SSL engine failed.', + 55 => 'Send data error.', + 56 => 'Receive data error.', + 58 => 'SSL certificate error.', + 59 => 'SSL cipher error.', + 60 => 'SSL CACertificate failed.', + 61 => 'Invalid content encoding.', + 62 => 'Invalid LDAP url.', + 63 => 'Filesize exceeded.', + 64 => 'SSL Failed.', + 65 => 'CURLE_SEND_FAIL_REWIND.', + 66 => 'SSL engine initalization failed.', + 67 => 'CURLE_LOGIN_DENIED.', + 68 => 'CURLE_TFTP_NOTFOUND.', + 69 => 'CURLE_TFTP_PERM.', + 70 => 'CURLE_REMOTE_DISK_FULL.', + 71 => 'CURLE_TFTP_ILLEGAL.', + 72 => 'CURLE_TFTP_UNKNOWNID.', + 73 => 'Remote file already exists.', + 74 => 'No such user on FTP server.', + 75 => 'Conversion failed.', + 76 => 'Conversion required.', + 77 => 'SSL CACertificate bad file.', + 78 => 'Remove file not found.', + 79 => 'SSH error.', + 80 => 'SSL Shutdown failed.', + 81 => 'Again.', + 82 => 'SSL bad CRL file.', + 83 => 'SSL issuer error.', + 84 => 'FTP pret failed.', + 85 => 'CURLE_RTSP_CSEQ_ERROR.', + 86 => 'CURLE_RTSP_SESSION_ERROR.', + 87 => 'CURLE_FTP_BAD_FILE_LIST.', + 88 => 'CURLE_CHUNK_FAILED.', + + + ]; +}