rc

Return Codes

The do303 service does return HTTP_status_codes . Beside the three digit number in the header, also some text in the HTTP content body.

Program wget does not display that text. However curl does. Tests with foo and bar/foo.deb.

$ wget --no-verbose http://stappers.it/do303/foo
http://stappers.it/do303/foo:
2016-07-11 13:34:43 ERROR 400: Bad Request.

$ wget --no-verbose http://stappers.it/do303/bar/foo.deb
http://stappers.it/do303/bar/foo.deb:
2016-07-11 13:34:43 ERROR 400: Bad Request.

$ curl --silent http://stappers.it/do303/foo
unknown type, verbose http://stappers.it/ra303/rc.html#unknowntype

$ curl --silent http://stappers.it/do303/bar/foo.deb
wrong format, verbose http://stappers.it/ra303/rc.html#wrongformat

wget showing only 400 Bad Reqeust, curl does show text.

Advice: use curl for getting more information for why the error.

Be aware that curl does not follow 303 See Other, where wget does it nicely.

$ wget http://stappers.it/do303/foo.deb
--2016-07-12 21:05:40--  http://stappers.it/do303/foo.deb
Resolving stappers.it (stappers.it)... 77.72.145.78
Connecting to stappers.it (stappers.it)|77.72.145.78|:80... connected.
HTTP request sent, awaiting response... 303 See other
Location: http://stappers.it/do303/debian/unstable/main/all/foo.deb [following]
--2016-07-12 21:05:40--  http://stappers.it/do303/debian/unstable/main/all/foo.deb
Connecting to stappers.it (stappers.it)|77.72.145.78|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-07-12 21:05:40 ERROR 404: Not Found.


$ curl http://stappers.it/do303/foo.deb

$ curl --head http://stappers.it/do303/foo.deb
HTTP/1.1 303 See other
Location: http://stappers.it/do303/debian/unstable/main/all/foo.deb


$ curl http://stappers.it/do303/debian/unstable/main/all/foo.deb
package not found, verbose http://stappers.it/ra303/rc.html#nopkg

Sequence in the status codes below, is the sequence how they can occure in program flow.

Method Not Allowed

onlyget

Only HTTP GET method is allowed. That method is default for wget.

400 Bad Request

unknowntype

known types are * .deb * .scr

wrongformat

The formats known are short and long.

Correct short format is packagename.knowntype

Correct long format is distro/suite/component/arch/packagename.knowntype

303 See Other

The 303 is good. First time you can get a 303 is for short format to long format.

503 Service Unavailable

These are all database related errors.

Thing you could do, is contacting the sysadmin of this service.

nodbc

No database connection was possible at all.

Esqlm

Error while querying the table that has information about which Package set table to query next.

EsqlPtbl

Error while querying a Package set table.

Esqlt

Error while querying the urltop table.

429 Too Many Requests

toomany

This code is not implemeted.

Your IPv4-address or IPv6 address block is in the database registered as beyond fair use. It is a signal saying: “Hey awake up, free means libre, not gratuit”

404 Not Found

There are %10 types of 404

noset

A set is ‘distro/suite/compoment/arch’. See Sets for which sets are avaiable.

nopkg

Package not found.

  • package is not in the set

  • you might have misspelled the package name

  • the package does not exist

410 Gone

strange

This situation could be created during development. It is not supposed to happen while in production.

Come back after 24 hours. In that day will the daily job be runned, which refreshes database content.

If it occures two days in row, then contact the people / person behind this service.

303 See Other

This 303 redirects you to a package repository webserver.

200 OK

When this service returns comtent. Example given .scr requests.

501 Not Implemented

ktni

Known type not implemented.

No source code implemented for a type that was earlier in the code evaluated as known.

ni

For some reason resulted the request in this 501.

This ‘’last resort’’ result code is to close a request that was not proper processed.

Either incomplete code or plain a bug.

See other