Refactored some exception cases in Response and Request.
Registering full directory paths to static resource dirs.