(#1175) - Handle HTTP codes other than 200/404 during repl

Replication should invoke callback if it receives HTTP error codes
other than 404 and 200. (Which might be returned from the DB server
or from an intermediary reverse proxy). It seems that there was an
oversight which could lead to HTTP 500s to otherwise trigger neither
success nor err-callback behavior.