Http Error Codes 550
Contents |
> ref > http status codes HTTP Status Codes Every HTTP transaction has a status code sent back by the server to define how the server ftp error code 550 handled the transaction. Here is a list of the most common ones. most common http status code List of Common HTTP Status Codes 200 OK 300 Multiple Choices 301 Moved Permanently 302 Found 304 Not fundamental pieces of an http request/response pair Modified 307 Temporary Redirect 400 Bad Request 401 Unauthorized 403 Forbidden 404 Not Found 410 Gone 500 Internal Server Error 501 Not Implemented 503 Service Unavailable 550 Permission denied
Make Up The Fundamental Pieces Of An Http Request/response Pair
HTTP Status Code - 200 OK The request has succeeded. The information returned with the response is dependent on the method used in the request. Back to top HTTP Status Code - 300 Multiple Choices The requested resource has different choices and cannot be resolved into one. For example, there may be several index.html pages depending on which what is the difference between a get request and a post request? language is wanted (such as Dutch). Back to top HTTP Status Code - 301 Moved Permanently The requested resource has been assigned a new permanent URI and any future references to this resource should use one of the returned URIs. Back to top HTTP Status Code - 302 Found The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. Back to top HTTP Status Code - 304 Not Modified If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code. The 304 response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields. If the client has done a conditional GET and access is allowed, but the document has not been modified since the date and time specified in If-Modified-Since field, the server responds with a 304 status code
good, bad or incomplete: Range Purpose 1xx Positive Preliminary reply The requested action is being initiated; expect another reply before proceeding with a new command. (The user-process sending another command before the completion reply would ftp error 550 access denied be in violation of protocol; but server-FTP processes should queue any commands that arrive while
Http Status Codes Indicates That The Resource Is Invalid Or Does Not Exist On The Server
a preceding command is in progress.) This type of reply can be used to indicate that the command was accepted and
Ftp Error 550 Permission Denied
the user-process may now pay attention to the data connections, for implementations where simultaneous monitoring is difficult. The server-FTP process may send at most, one 1xx reply per command. 2xx Positive Completion reply The requested action https://www.smartlabsoftware.com/ref/http-status-codes.htm has been successfully completed. A new request may be initiated. 3xx Positive Intermediate reply The command has been accepted, but the requested action is being held in abeyance, pending receipt of further information. The user should send another command specifying this information. This reply is used in command sequence groups. 4xx Transient Negative Completion reply The command was not accepted and the requested action did not take place, but the error condition is https://en.wikipedia.org/wiki/List_of_FTP_server_return_codes temporary and the action may be requested again. The user should return to the beginning of the command sequence, if any. It is difficult to assign a meaning to "transient", particularly when two distinct sites (Server- and User-processes) have to agree on the interpretation. Each reply in the 4xx category might have a slightly different time value, but the intent is that the user-process is encouraged to try again. A rule of thumb in determining if a reply fits into the 4xx or the 5xx (Permanent Negative) category is that replies are 4xx if the commands can be repeated without any change in command form or in properties of the User or Server (e.g., the command is spelled the same with the same arguments used; the user does not change his file access or user name; the server does not put up a new implementation.) 5xx Permanent Negative Completion reply The command was not accepted and the requested action did not take place. The User-process is discouraged from repeating the exact request (in the same sequence). Even some "permanent" error conditions can be corrected, so the human user may want to direct his User-process to reinitiate the command sequence by direct action at some point in the future (e.g., after the spelling has been changed,
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring http://stackoverflow.com/questions/16525799/proper-use-of-http-error-codes-550-why-is-it-5xx-instead-of-4xx developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; http://www.greenend.org.uk/rjk/tech/smtpreplies.html it only takes a minute: Sign up Proper use of HTTP Error Codes. 550 - Why is it 5xx instead of 4xx? up vote 4 down vote favorite Today a co-worked used a 550 error on a delete action ftp error when the user doesn't have permission which at first looked to me bad because as I'm aware of, that kinda error looks like a client (aka 4xx) error to me and not a server (aka 5xx). When looking at the description, it suggest exactly that it was used correctly. Instead of a 401 error, which I was using with some 'problems' before. Problem of 401 error is : If user A is logged in, and try to do an action http status code that returns a 401 it can suggest that you must 'login' since you don't have valid credentials to access that http resource. Problem with this approach is that if user is logged, server knows that he doesn't have the permission, in this case, looks like a 550 it's more appropriate but doesn't look quite to me that a 550 error should be used in this scenario. Question is: What's the proper use (if any) of 550 error, in web based applications. I understand it's use in FTP and SMTP relay usage. If some logged in user, sends a request of an action which is not permitted, which error should be returned ? Thanks! web-applications http-status-codes http-error share|improve this question asked May 13 '13 at 15:30 Bart Calixto 8,16744184 add a comment| 1 Answer 1 active oldest votes up vote 7 down vote accepted 5xx errors are SERVER errors. If the user doesn't have permission it should be a 4XX error. However you're correct. A 401 error means that a user must log in to access. i.e. authentication is required. The error you're looking for is 403 Forbidden This has no ambiguity over whether its because a user is logged in or not. Its clear cut. From the wiki on http error codes (http://en.wikipedia.org/wiki/List_of_HTTP_status_codes) (emphasis mine): 403 Forbidden The request was a valid request, but the server is refusing to respond to it.[2] Unlike a 401 Unautho
Reply codes in numerical order Code Meaning 200 (nonstandard success response, see rfc876) 211 System status, or system help reply 214 Help message 220