Add and remove pins

Indeed, it breaks when using a string. But I'd argue HTTP status codes are supposed to be integers... Should I make a change?