returns status as json with errors
added mkdir to www