#include <atompub/atom.h>
#include <glib.h>
+#include <gio/gio.h>
struct _atom_error
{
break;
}
}
+ else if (error->domain = G_IO_ERROR)
+ {
+ switch (error->code)
+ {
+ case G_IO_ERROR_NOT_FOUND:
+ aerr->code = 404;
+ break;
+ default:
+ aerr->code = 500;
+ break;
+ }
+ }
else
{
aerr->code = 500;