added catch for 404 on POST