Zen Cart Logo
Forums / General Questions / Status Codes: what do visitors see?

Status Codes: what do visitors see?

Locked

Views: 785

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
11 Nov 2009, 2:48 AM
#1
hedron avatar

hedron

Zen Follower

Join Date:
Feb 2009
Posts:
138
Plugin Contributions:
0

Status Codes: what do visitors see?

In my site statistics I found the following status codes:
200 OK
304 Not modified since last retrieval
404 Document not found
500 Internal server error
503 Service temporarily unavailable

206 Partial content
301 Document moved permanently
302 Document found elsewhere
400 Bad request
401 Authentication required
403 Access forbidden
405 Method not allowed
416 Requested range not valid

If I understand correctly, 200 means that the site was retrieved successfully. 304 means that the site was retrieved from the user's cache.

I have 404 redirected to the appropriate "page not found" Zen cart page.
I have 500 and 503 redirected to nddbc.html (which I customized to look like my template)

What about the rest of the above status codes? How does Zen Cart behave when they are generated?

Thank you!

11 Nov 2009, 4:04 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Status Codes: what do visitors see?

Zen Cart has nothing to do with any of those codes. It's up to your webserver's configuration how it responds to the situation.

If you've configured specific behaviors for certain codes via your .htaccess or via your hosting control panel, then you can customize the destination when such an error occurs.
Otherwise, the customer sees whatever your server decides to send them ... often a white page with the error number and its name as you've quoted them.

11 Nov 2009, 4:16 AM
#3
hedron avatar

hedron

Zen Follower

Join Date:
Feb 2009
Posts:
138
Plugin Contributions:
0

Re: Status Codes: what do visitors see?

Thank you for replying to all my posts today DrByte!

Isn't 401 for example a failed login?

And isn't 302 just an automatic redirect? I seem to be getting a lot of 302s.

11 Nov 2009, 4:45 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Status Codes: what do visitors see?

A 302 is likely a result of a redirect rule in your .htaccess ... again, handled by how you've configured your server.

11 Nov 2009, 4:53 AM
#5
hedron avatar

hedron

Zen Follower

Join Date:
Feb 2009
Posts:
138
Plugin Contributions:
0

Re: Status Codes: what do visitors see?

OK. I understand.

Thank you again!!