Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1044)

Side by Side Diff: net/base/net_error_list.h

Issue 2985012: FTP: add more detailed error codes based on RFC 959. (Closed)
Patch Set: fixes Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains the list of network errors. 5 // This file contains the list of network errors.
6 6
7 // 7 //
8 // Ranges: 8 // Ranges:
9 // 0- 99 System related errors 9 // 0- 99 System related errors
10 // 100-199 Connection related errors 10 // 100-199 Connection related errors
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 // The server's response was insecure (e.g. there was a cert error). 380 // The server's response was insecure (e.g. there was a cert error).
381 NET_ERROR(INSECURE_RESPONSE, -501) 381 NET_ERROR(INSECURE_RESPONSE, -501)
382 382
383 // The server responded to a <keygen> with a generated client cert that we 383 // The server responded to a <keygen> with a generated client cert that we
384 // don't have the matching private key for. 384 // don't have the matching private key for.
385 NET_ERROR(NO_PRIVATE_KEY_FOR_CERT, -502) 385 NET_ERROR(NO_PRIVATE_KEY_FOR_CERT, -502)
386 386
387 // An error adding to the OS certificate database (e.g. OS X Keychain). 387 // An error adding to the OS certificate database (e.g. OS X Keychain).
388 NET_ERROR(ADD_USER_CERT_FAILED, -503) 388 NET_ERROR(ADD_USER_CERT_FAILED, -503)
389 389
390 // The FTP PASV command failed. 390 // *** Code -600 is reserved (was FTP_PASV_COMMAND_FAILED). ***
391 NET_ERROR(FTP_PASV_COMMAND_FAILED, -600) 391
392 // A generic error for failed FTP control connection command.
393 // If possible, please use or add a more specific error code.
394 NET_ERROR(FTP_FAILED, -601)
395
396 // The server cannot fulfill the request at this point. This is a temporary
397 // error.
398 // FTP response code 421.
399 NET_ERROR(FTP_SERVICE_UNAVAILABLE, -602)
400
401 // The server has aborted the transfer.
402 // FTP response code 426.
403 NET_ERROR(FTP_TRANSFER_ABORTED, -603)
404
405 // The file is busy, or some other temporary error condition on opening
406 // the file.
407 // FTP response code 450.
408 NET_ERROR(FTP_FILE_BUSY, -604)
409
410 // Server rejected our command because of syntax errors.
411 // FTP response codes 500, 501.
412 NET_ERROR(FTP_SYNTAX_ERROR, -605)
413
414 // Server does not support the command we issued.
415 // FTP response codes 502, 504.
416 NET_ERROR(FTP_COMMAND_NOT_SUPPORTED, -606)
417
418 // Server rejected our command because we didn't issue the commands in right
419 // order.
420 // FTP response code 503.
421 NET_ERROR(FTP_BAD_COMMAND_SEQUENCE, -607)
OLDNEW
« no previous file with comments | « no previous file | net/ftp/ftp_network_transaction.h » ('j') | net/ftp/ftp_network_transaction_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698