Proper processing of modDate and creDate

This solves issue #182 

Manually tested (it is very difficult to test this automatically, due to the strong dependency on timing).

In addition, I have done some fixes related with standardized reason phrase messages for code 404.