addition of error 405, 500 handling + empty cart bill fix